- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Answering In-block-queries Number of unlabelled bin. trees with n nodes: n’th Catalan number Cn Cn=O(4n/n3/2) Theorem: We can store answers to all in-block-queries in space O(n) Proof: O(4s/s3/2)·s2 = O(22s·s1/2) = O(2log(n)/2·log1/2n) = O(n1/2·log1/2n) * Answering In-block-queries One problem remains: For each block Bi we need to know its type in time O(s) Type: bijection t from arrays of size s to {0,…,Cs-1} with t(B)= t(B’) iff B and B’ have same Cartesian Tree build Cartesian Tree for each block Bj give tree a number 0 ≤ t(Bj) Cs * O(n)-Algo for Cartesian Tree Let Ti be the Cartesian Tree for B[1,i] Ti obtained from Ti-1 as follows: x y B[x] ≤ B[i] B[i] x i y ? * J. Fischer, V.Heun: Improvements on the RMQ-Problem * . . * . . * . . * . . for suffixes ti..n and ti‘..n return max{k : ti..k = ti‘..k} * . . * . . * . . * . . * . . * . . * . . * . . * . . * . . * . . * . . * . . * . . * . . * . . Improvements on theRange-Minimum-Query-Problem Johannes Fischer Volker Heun Universit?t München, Institut für Informatik * Introduction * Introduction given: array A of size n Task: preprocess A such that RMQA(l,r) = argminl≤i≤r A[i] can be answered efficiently l r min ? return 5 1 2 3 4 5 6 7 8 9 10 11 A = 2 5 2 4 1 7 5 8 3 8 6 Break ties to the left 1 2 3 4 5 6 7 8 9 10 11 A = 2 5 2 4 1 7 5 8 3 8 6 1 2 3 4 5 6 7 8 9 10 11 A = 2 5 2 4 1 7 5 8 3 8 6 l r min ? return 1 * Applications Lowest Common Ancestors (LCA) A B C I D E K J G H F A = I D B E A J F K C G C H 0 1 2 3 H = 3 2 1 2 0 3 2 3 1 2 1 2 J G H = 3 2 1 2 0 3 2 3 1 2 1 2 A = I D B E A J F K C G C H C * Applications Longest common extensions of strings (LCE) t= i j abba abba x z RMQs on the LCP-table of suffix array Other applications Document Retrieval (Muthukrishnan SODA’02) Suffix links in ESA (Abouldhoda et al. WABI’02) Maximum-Sum Queries (Chen/Chao ISAAC‘04) … ? basic ingredient! * Previous Results for RMQ Berkman/Vishkin FOCS‘89: Preprocessing O(n) Query time O(1) Redisco
您可能关注的文档
- E- E1000印刷自动套准系统课件.doc
- e- S- C- M帐号申请暨帐号管理操作手册-内部员工用-(- Buyer)课件.ppt
- E- S- T-2004氨氮在线自动监测仪课件.doc
- E- T- F期权波动率套利策略课件.ppt
- E-- Learning学习技术环境的标准化课件.ppt
- East- View-- U- D- B俄罗斯大全数据库简介及使用说明课件.ppt
- English-medium- Higher- Education-at-the- University-of- Macau课件.ppt
- Enneagram-九型人格课件.ppt
- Estimated- Living- Expenses-2012-2013课件.ppt
- Evaluation-of- Five- G- I- S-based- Interpolation- Techniques-for-课件.ppt
- Infinite- Models-for- Propositional- Calculi课件.ppt
- Integrated- Security-&- Confidentiality-(- S&- C)- Guidelines- Across-课件.ppt
- Israel- Airport- Authority- Security- Division--- Ben-- Gurion- Intl'课件.ppt
- J- K001带自动量仪精密半自动外圆磨床课件.doc
- Japanese- English课件.ppt
- jsjsys课件.ppt
- Keep-the-database- U- I-simple-and-in-plain- English-(as-best-as-课件.ppt
- L- A- M- O- S- T-与-虚拟天文台课件.ppt
- L- E- A- N- M- A- N- U- F- A- C- T- U- R- I- N- G- T- R- A- I- N- I- N- G某企业精益生产培训课件.ppt
- L- E- L- A-10082- Varieties-of- English课件.ppt
文档评论(0)