We propose an efficient algorithm finding, for a word w and an integer α > 0, the longest word u such that w has a factor uvu, with |uv| ≤ α|u| (i. e., the longest α-gapped repeat of w). Our algorithm runs in O(αn) time. Moreover, it can be easily adapted to find the longest u such that w has a factor uRvu, with |uv| ≤ α|u| (i. e., the longest α-gapped palindrome), again in O(αn) time.
CITATION STYLE
Gawrychowski, P., & Manea, F. (2015). Longest α-gapped repeat and palindrome. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 9210, pp. 27–40). Springer Verlag. https://doi.org/10.1007/978-3-319-22177-9_3
Mendeley helps you to discover research relevant for your work.