单字符替换后的最小唯一回文子串
Minimal unique palindromic substrings after single-character substitution
摘要:
回文是一个字符串,它的正反读都是一样的。如果$w$在$T$中只出现一次,并且$w$的任何适当回文子串在$T$中至少出现两次,则字符串$T$的回文子串$w$被称为$T$的最小唯一回文子串(MUPS)。MUPS用于回答最短唯一回文子串问题,这是由分子生物学激发的[Inoue et al.,2018年]。给定长度为$n$的字符串$T$,可以在$O(n)$时间内计算$T$的所有MUPS。在本文中,我们研究的问题,更新的MUPS的设置时,输入字符串$T$中的一个字符被替换为另一个字符。我们首先分析了当一个字符被替换时,MUPS变化的数目$d$,并表明$d$在$O(\log n)$中。此外,我们提出了一种算法,使用$O(n)$时间和空间的预处理,并更新的MUPS在$O(\logσ+ (\log\log n)^2 + d)$时间,其中$σ$是字母表的大小。我们还提出了一个变体的算法,它运行在最佳的$O(1+d)$时间时,字母表的大小是恒定的。
英文摘要:
A palindrome is a string that reads the same forward and backward. A palindromic substring $w$ of a string $T$ is called a minimal unique palindromic substring (MUPS) of $T$ if $w$ occurs only once in $T$ and any proper palindromic substring of $w$ occurs at least twice in $T$. MUPSs are utilized for answering the shortest unique palindromic substring problem, which is motivated by molecular biology [Inoue et al., 2018]. Given a string $T$ of length $n$, all MUPSs of $T$ can be computed in $O(n)$ time. In this paper, we study the problem of updating the set of MUPSs when a character in the input string $T$ is substituted by another character. We first analyze the number $d$ of changes of MUPSs when a character is substituted, and show that $d$ is in $O(\log n)$. Further, we present an algorithm that uses $O(n)$ time and space for preprocessing, and updates the set of MUPSs in $O(\logσ+ (\log\log n)^2 + d)$ time where $σ$ is the alphabet size. We also propose a variant of the algorithm, which runs in optimal $O(1+d)$ time when the alphabet size is constant.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。