arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1806.00198cs.DS
收藏

Block Palindromes:回文的一种新推广

Block Palindromes: A New Generalization of Palindromes

Keisuke Goto, Tomohiro I, Hideo Bannai, Shunsuke Inenaga

摘要:

我们研究了一种新的推广回文和间隙回文称为块回文。块回文是当相同的子字符串被不同的字符替换时变成回文的字符串。我们研究了块回文的几个性质,特别是研究了块回文串的子串。在这样做的时候,我们引入了\emph{maximal block palindrome}的概念,这导致了一个紧凑的表示出现在一个字符串中的所有块回文。我们还提出了一个算法,枚举所有的最大块回文出现在一个给定的字符串$T$在$O(|T| + \|\mathit{MBP}(T)\|)$时间,其中$\|\mathit{MBP}(T)\|$是输出的大小,这是最佳的,除非所有的最大块回文可以表示在一个更紧凑的方式。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑