首页    期刊浏览 2024年11月24日 星期日
登录注册

文章基本信息

  • 标题:Longest substring palindrome after edit
  • 作者:Mitsuru Funakoshi ; Yuto Nakashima ; Shunsuke Inenaga
  • 期刊名称:LIPIcs : Leibniz International Proceedings in Informatics
  • 电子版ISSN:1868-8969
  • 出版年度:2018
  • 卷号:105
  • 页码:12:1-12:14
  • DOI:10.4230/LIPIcs.CPM.2018.12
  • 出版社:Schloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
  • 摘要:It is known that the length of the longest substring palindromes (LSPals) of a given string T of length n can be computed in O(n) time by Manacher's algorithm [J. ACM '75]. In this paper, we consider the problem of finding the LSPal after the string is edited. We present an algorithm that uses O(n) time and space for preprocessing, and answers the length of the LSPals in O(log (min {sigma, log n })) time after single character substitution, insertion, or deletion, where sigma 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 LSPals in O(l + log n) time, after an existing substring in T is replaced by a string of arbitrary length l.
  • 关键词:maximal palindromes; edit operations; periodicity; suffix trees
Loading...
联系我们|关于我们|网站声明
国家哲学社会科学文献中心版权所有