Abstract

For α≥1α\geq 1, an αα-gapped repeat in a word ww is a factor uvuuvu of ww such that ∣uv∣≤α∣u∣|uv|\leq α|u|; the two factors uu in such a repeat are called arms, while the factor vv is called gap. Such a repeat is called maximal if its arms cannot be extended simultaneously with the same symbol to the right or, respectively, to the left. In this paper we show that the number of maximal αα-gapped repeats that may occur in a word is upper bounded by 18αn18αn. This allows us to construct an algorithm finding all the maximal αα-gapped repeats of a word in O(αn)O(αn); this is optimal, in the worst case, as there are words that have Θ(αn)Θ(αn) maximal αα-gapped repeats. Our techniques can be extended to get comparable results in the case of αα-gapped palindromes, i.e., factors uvuTuvu^\mathrm{T} with ∣uv∣≤α∣u∣|uv|\leq α|u|.

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.