pith. sign in

arxiv: 1806.00198 · v3 · pith:2I7DYCCTnew · submitted 2018-06-01 · 💻 cs.DS

Block Palindromes: A New Generalization of Palindromes

classification 💻 cs.DS
keywords palindromesblockstringmaximalpalindromecompactgeneralizationmathit
0
0 comments X
read the original abstract

We study a new generalization of palindromes and gapped palindromes called block palindromes. A block palindrome is a string that becomes a palindrome when identical substrings are replaced with a distinct character. We investigate several properties of block palindromes and in particular, study substrings of a string which are block palindromes. In so doing, we introduce the notion of a \emph{maximal block palindrome}, which leads to a compact representation of all block palindromes that occur in a string. We also propose an algorithm which enumerates all maximal block palindromes that appear in a given string $T$ in $O(|T| + \|\mathit{MBP}(T)\|)$ time, where $\|\mathit{MBP}(T)\|$ is the output size, which is optimal unless all the maximal block palindromes can be represented in a more compact way.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.