当前位置: X-MOL 学术Theor. Comput. Sci. › 论文详情
Our official English website, www.x-mol.net, welcomes your feedback! (Note: you will need to create a separate account there.)
Computing longest palindromic substring after single-character or block-wise edits
Theoretical Computer Science ( IF 1.1 ) Pub Date : 2021-01-08 , DOI: 10.1016/j.tcs.2021.01.014
Mitsuru Funakoshi , Yuto Nakashima , Shunsuke Inenaga , Hideo Bannai , Masayuki Takeda

Palindromes are important objects in strings which have been extensively studied from combinatorial, algorithmic, and bioinformatics points of views. It is known that the length of the longest palindromic substrings (LPSs) of a given string T of length n can be computed in O(n) time by Manacher's algorithm [12]. In this paper, we consider the problem of finding the LPS after the string is edited. We present an algorithm that uses O(n) time and space for preprocessing, and answers the length of the LPSs in O(log(min{σ,logn})) time after a single character substitution, insertion, or deletion, where σ denotes the number of distinct characters appearing in T. We also propose an algorithm that uses O(n) time and space for preprocessing, and answers the length of the LPSs in O(+loglogn) time, after an existing substring in T is replaced by a string of arbitrary length .



中文翻译:

单字符或逐块编辑后计算最长回文子字符串

回文是字符串中的重要对象,已经从组合,算法和生物信息学的角度进行了广泛研究。已知可以计算长度为n的给定字符串T的最长回文子字符串(LPSs)的长度Øñ通过Manacher算法[12]。在本文中,我们考虑在字符串编辑后查找LPS的问题。我们提出一种使用Øñ 预处理的时间和空间,并回答LPS的长度 Ø日志{σ日志ñ}单个字符替换,插入或删除之后的时间,其中σ表示T中出现的不同字符的数量。我们还提出了一种使用Øñ 预处理的时间和空间,并回答LPS的长度 Ø+日志日志ñ时间,在现有的子串后Ť由任意长度的字符串替换

更新日期:2021-02-10
down
wechat
bug