arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1309.4055cs.FL
收藏

词中间隔重复和次重复的查找

Searching of gapped repeats and subrepetitions in a word

Roman Kolpakov, Mikhail Podolskiy, Mikhail Posypkin, Nickolay Khrapov

摘要:

空位重复是$uvu$形式的因子,其中$u$和$v$是非空词。缺口重复的周期定义为$|u|+|v|$。如果不能在保持其周期的情况下向左或向右延伸至少一个字母,则空位重复序列是最大的。如果间隔重复的周期不大于$α|v|$,则该间隔重复称为$α$ -间隔。$δ$ -子重复是指数小于2但不小于$1+δ$的因子(因子的指数是因子的长度和最小周期的商)。$δ$ -子重复是最大的,如果它不能向左或向右扩展至少一个字母,并保持其最小周期。我们揭示了最大缺口重复序列和最大亚重复序列之间的密切关系。此外,我们表明,在一个字的长度$n$的最大$α$缺口重复的数量是有界的$O(α^2n)$和最大$δ$ subrepetitions的数量是有界的$O(n/δ^2)$。使用得到的上界,我们提出了算法,找到所有最大的$α$ -缺口重复和所有最大的$δ$ -subrepetitions在一个字的长度$n$。查找所有最大$α$缺口重复序列的算法对于字母表大小恒定的情况具有$O(α^2n)$时间复杂度,而对于一般情况具有$O(n\log n + α^2n)$时间复杂度。为了找到所有的最大$δ$ -子重复,我们提出了两个算法。第一种算法在字母表长度恒定的情况下具有$O(\frac{n\log\log n}{δ^2})$时间复杂度,而在一般情况下具有$O(n\log n +\frac{n\log\log n}{δ^2})$时间复杂度。第二种算法具有$O(n\log n+\frac{n}{δ^2}\log \frac{1}δ)$期望的时间复杂度。

英文摘要:

A gapped repeat is a factor of the form $uvu$ where $u$ and $v$ are nonempty words. The period of the gapped repeat is defined as $|u|+|v|$. The gapped repeat is maximal if it cannot be extended to the left or to the right by at least one letter with preserving its period. The gapped repeat is called $α$-gapped if its period is not greater than $α|v|$. A $δ$-subrepetition is a factor which exponent is less than 2 but is not less than $1+δ$ (the exponent of the factor is the quotient of the length and the minimal period of the factor). The $δ$-subrepetition is maximal if it cannot be extended to the left or to the right by at least one letter with preserving its minimal period. We reveal a close relation between maximal gapped repeats and maximal subrepetitions. Moreover, we show that in a word of length $n$ the number of maximal $α$-gapped repeats is bounded by $O(α^2n)$ and the number of maximal $δ$-subrepetitions is bounded by $O(n/δ^2)$. Using the obtained upper bounds, we propose algorithms for finding all maximal $α$-gapped repeats and all maximal $δ$-subrepetitions in a word of length $n$. The algorithm for finding all maximal $α$-gapped repeats has $O(α^2n)$ time complexity for the case of constant alphabet size and $O(n\log n + α^2n)$ time complexity for the general case. For finding all maximal $δ$-subrepetitions we propose two algorithms. The first algorithm has $O(\frac{n\log\log n}{δ^2})$ time complexity for the case of constant alphabet size and $O(n\log n +\frac{n\log\log n}{δ^2})$ time complexity for the general case. The second algorithm has $O(n\log n+\frac{n}{δ^2}\log \frac{1}δ)$ expected time complexity.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑