Efficiently Finding All Maximal $\alpha$-gapped Repeats
Pawe{\l} Gawrychowski, Tomohiro I, Shunsuke Inenaga, Dominik, K\"oppl, Florin Manea

TL;DR
This paper introduces an optimal algorithm for finding all maximal $eta$-gapped repeats in a word, providing tight bounds on their number and extending techniques to $eta$-gapped palindromes.
Contribution
The paper establishes an upper bound of $18eta n$ on the number of maximal $eta$-gapped repeats and presents an $O(eta n)$ algorithm, which is proven to be optimal.
Findings
Number of maximal $eta$-gapped repeats is at most $18eta n$.
Developed an $O(eta n)$ algorithm to find all such repeats.
Techniques extend to $eta$-gapped palindromes.
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 .
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAlgorithms and Data Compression · Network Packet Processing and Optimization · Cellular Automata and Applications
