用户名: 密码: 验证码:
Computing minimal and maximal suffixes of a substring
详细信息    查看全文
文摘
We consider the problems of computing the maximal and the minimal non-empty suffixes of substrings of a longer text of length n. For the minimal suffix problem we show that for every τ  , class="mathmlsrc">class="formulatext stixSupport mathImg" data-mathURL="/science?_ob=MathURL&_method=retrieve&_eid=1-s2.0-S0304397515007707&_mathId=si1.gif&_user=111111111&_pii=S0304397515007707&_rdoc=1&_issn=03043975&md5=5d64ac19b4cd1d3f88bd4e4e8774d35f" title="Click to view the MathML source">1≤τ≤log⁡nclass="mathContainer hidden">class="mathCode">1τlogn, there exists a linear-space data structure with class="mathmlsrc">class="formulatext stixSupport mathImg" data-mathURL="/science?_ob=MathURL&_method=retrieve&_eid=1-s2.0-S0304397515007707&_mathId=si165.gif&_user=111111111&_pii=S0304397515007707&_rdoc=1&_issn=03043975&md5=eee79641ba67e852bf01e7886bdb9ded" title="Click to view the MathML source">O(τ)class="mathContainer hidden">class="mathCode">O(τ) query time and class="mathmlsrc">class="formulatext stixSupport mathImg" data-mathURL="/science?_ob=MathURL&_method=retrieve&_eid=1-s2.0-S0304397515007707&_mathId=si166.gif&_user=111111111&_pii=S0304397515007707&_rdoc=1&_issn=03043975&md5=e9262a4d9a1fc19afe0f678ab9f67dff" title="Click to view the MathML source">O(nlog⁡n/τ)class="mathContainer hidden">class="mathCode">O(nlogn/τ) preprocessing time. As a sample application, we show that this data structure can be used to compute the Lyndon decomposition of any substring of the text in class="mathmlsrc">class="formulatext stixSupport mathImg" data-mathURL="/science?_ob=MathURL&_method=retrieve&_eid=1-s2.0-S0304397515007707&_mathId=si172.gif&_user=111111111&_pii=S0304397515007707&_rdoc=1&_issn=03043975&md5=842d5c13a6a2eb08a31eb7d6f37f321b" title="Click to view the MathML source">O(kτ)class="mathContainer hidden">class="mathCode">O(kτ) time, where k   is the number of distinct factors in the decomposition. For the maximal suffix problem, we give a linear-space structure with class="mathmlsrc">class="formulatext stixSupport mathImg" data-mathURL="/science?_ob=MathURL&_method=retrieve&_eid=1-s2.0-S0304397515007707&_mathId=si112.gif&_user=111111111&_pii=S0304397515007707&_rdoc=1&_issn=03043975&md5=462f75d0ecffd60e935ce468633554af" title="Click to view the MathML source">O(1)class="mathContainer hidden">class="mathCode">O(1) query time and class="mathmlsrc">class="formulatext stixSupport mathImg" data-mathURL="/science?_ob=MathURL&_method=retrieve&_eid=1-s2.0-S0304397515007707&_mathId=si119.gif&_user=111111111&_pii=S0304397515007707&_rdoc=1&_issn=03043975&md5=9e85e4ea384018afb41c8d6f338b1ea2" title="Click to view the MathML source">O(n)class="mathContainer hidden">class="mathCode">O(n) preprocessing time. In other words, we simultaneously achieve both the optimal query time and the optimal construction time.

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700