Article ID | Journal | Published Year | Pages | File Type |
---|---|---|---|---|
4952356 | Theoretical Computer Science | 2016 | 8 Pages |
Abstract
A palindrome is a string x=a1â¯an which is equal to its reversal xË=anâ¯a1. We consider gapped palindromes which are strings of the form uvuË, where u,v are strings, |v|â¥2, and uË is the reversal of u. Replicating the standard notion of string exponent, we define the anti-exponent of a gapped palindrome uvuË as the quotient of |uvuË| by |uv|. To get an efficient computation of maximal anti-exponent of factors in a palindrome-free string, we apply techniques based on the suffix automaton and the reversed Lempel-Ziv factorisation. Our algorithm runs in O(n) time on a fixed-size alphabet or O(nlogâ¡Ï) on a large alphabet, which dramatically outperforms the naive cubic-time solution.
Keywords
Related Topics
Physical Sciences and Engineering
Computer Science
Computational Theory and Mathematics
Authors
Golnaz Badkobeh, Maxime Crochemore, Manal Mohamed, Chalita Toopsuwan,