License: Creative Commons Attribution 3.0 Unported license (CC BY 3.0)
When quoting this document, please refer to the following
DOI: 10.4230/LIPIcs.CPM.2018.12
URN: urn:nbn:de:0030-drops-86977
URL: http://dagstuhl.sunsite.rwth-aachen.de/volltexte/2018/8697/
Funakoshi, Mitsuru ;
Nakashima, Yuto ;
Inenaga, Shunsuke ;
Bannai, Hideo ;
Takeda, Masayuki
Longest substring palindrome after edit
Abstract
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.
BibTeX - Entry
@InProceedings{funakoshi_et_al:LIPIcs:2018:8697,
author = {Mitsuru Funakoshi and Yuto Nakashima and Shunsuke Inenaga and Hideo Bannai and Masayuki Takeda},
title = {{Longest substring palindrome after edit}},
booktitle = {Annual Symposium on Combinatorial Pattern Matching (CPM 2018)},
pages = {12:1--12:14},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-074-3},
ISSN = {1868-8969},
year = {2018},
volume = {105},
editor = {Gonzalo Navarro and David Sankoff and Binhai Zhu},
publisher = {Schloss Dagstuhl--Leibniz-Zentrum fuer Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/opus/volltexte/2018/8697},
URN = {urn:nbn:de:0030-drops-86977},
doi = {10.4230/LIPIcs.CPM.2018.12},
annote = {Keywords: maximal palindromes, edit operations, periodicity, suffix trees}
}
Keywords: |
|
maximal palindromes, edit operations, periodicity, suffix trees |
Collection: |
|
Annual Symposium on Combinatorial Pattern Matching (CPM 2018) |
Issue Date: |
|
2018 |
Date of publication: |
|
18.05.2018 |