Efficiently Finding All Maximal -gapped Repeats
Abstract: For , an -gapped repeat in a word is a factor of such that ; the two factors in such a repeat are called arms, while the factor 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 . This allows us to construct an algorithm finding all the maximal -gapped repeats of a word in ; this is optimal, in the worst case, as there are words that have maximal -gapped repeats. Our techniques can be extended to get comparable results in the case of -gapped palindromes, i.e., factors with .
Paper Prompts
Sign up for free to create and run prompts on this paper.