Longest Gapped Repeats and Palindromes
Abstract
A gapped repeat (respectively, palindrome) occurring in a word is a factor (respectively, ) of . In such a repeat (palindrome) is called the arm of the repeat (respectively, palindrome), while is called the gap. We show how to compute efficiently, for every position of the word , the longest gapped repeat and palindrome occurring at that position, provided that the length of the gap is subject to various types of restrictions. That is, that for each position we compute the longest prefix of such that (respectively, ) is a suffix of (defining thus a gapped repeat -- respectively, palindrome ), and the length of is subject to the aforementioned restrictions.
Cite
@article{arxiv.1511.07180,
title = {Longest Gapped Repeats and Palindromes},
author = {Marius Dumitran and Paweł Gawrychowski and Florin Manea},
journal= {arXiv preprint arXiv:1511.07180},
year = {2023}
}
Comments
This is an extension of the conference papers "Longest $\alpha$-Gapped Repeat and Palindrome", presented by the second and third authors at FCT 2015, and "Longest Gapped Repeats and Palindromes", presented by the first and third authors at MFCS 2015