“…Problems like how many maximal α-gapped repeats or palindromes can a word of length n contain, how efficiently can we compute the set of all maximal α-gapped repeats or palindromes in a word, how efficiently can we compute the α-gapped repeat or palindrome with the longest arm, were already investigated [3,7,10,22]: [10] showed how to compute the longest α-gapped repeat/palindrome in O(αn) time, [8] showed how to compute a series of data structures that can give the longest 2-gapped repeat/palindrome that starts at each position (and the results generalize easily to arbitrary α), Tanimura et al [22] gave an O(αn + |G α (w)|)-time solution to find all maximal α-gapped repeats for an input word over constant alphabets. Finally, in August 2015, the fourth author of this paper announced on the Stringmasters webpage that the bound on the number of all maximal α-gapped repeats and palindromes is indeed O(αn); together with [22], this leads to an optimal algorithm for solving the problem of finding all maximal α-gapped repeats in the particular case of constant alphabets.…”