首页    期刊浏览 2024年11月28日 星期四
登录注册

文章基本信息

  • 标题:Efficient Computation of 2-Covers of a String
  • 本地全文:下载
  • 作者:Jakub Radoszewski ; Juliusz StraszyÅ"ski
  • 期刊名称:LIPIcs : Leibniz International Proceedings in Informatics
  • 电子版ISSN:1868-8969
  • 出版年度:2020
  • 卷号:173
  • 页码:77:1-77:17
  • DOI:10.4230/LIPIcs.ESA.2020.77
  • 出版社:Schloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
  • 摘要:Quasiperiodicity is a generalization of periodicity that has been researched for almost 30 years. The notion of cover is the classic variant of quasiperiodicity. A cover of a text T is a string whose occurrences in T cover all positions of T. There are several algorithms computing covers of a text in linear time. In this paper we consider a natural extension of cover. For a text T, we call a pair of strings a 2-cover if they have the same length and their occurrences cover the text T. We give an algorithm that computes all 2-covers of a string of length n in ð'ª(n log n log log n + output) expected time or ð'ª(n log n log² log n / log log log n + output) worst-case time, where output is the size of output. If (X,Y) is a 2-cover of T, then either X is a prefix and Y is a suffix of T, in which case we call (X,Y) a ps-cover, or one of X, Y is a border (that is, both a prefix and a suffix) of T, and then we call (X,Y) a b-cover. A string of length n has up to n ps-covers; we show an algorithm that computes all of them in ð'ª(n log log n) expected time or ð'ª(n log² log n / log log log n) worst-case time. A string of length n can have Î~(n²) non-trivial b-covers; our algorithm can report one b-cover per length (if it exists) or all shortest b-covers in ð'ª(n log n log log n) expected time or ð'ª(n log n log² log n / log log log n) worst-case time. All our algorithms use linear space. The problem in scope can be generalized to λ > 2 equal-length strings, resulting in the notion of λ-cover. Cole et al. (2005) showed that the λ-cover problem is NP-complete. Our algorithms generalize to λ-covers, with (the first component of) the algorithm’s complexity multiplied by n^{λ-2}.
  • 关键词:quasiperiodicity; cover of a string; 2-cover; lambda-cover
国家哲学社会科学文献中心版权所有