Computing palindromic factorizations and palindromic covers on-line
Computing palindromic factorizations and palindromic covers on-line
复制标题
在线计算回文分解和回文覆盖
DOI:
10.1007/978-3-319-07566-2_16
复制
发表时间:
2014
期刊:
影响因子:
--
通讯作者:
Masayuki Takeda
中科院分区:
文献类型:
--
作者:
Tomohiro I;Shiho Sugimoto;Shunsuke Inenaga;Hideo Bannai;Masayuki Takeda
Apalindromic factorizationof a stringwis a factorization ofwconsisting only of palindromic substrings ofw. In this paper, we present an on-lineO(nlogn)-timeO(n)-space algorithm to compute smallest palindromic factorizations of all prefixes ofw, wherenis the length of a given stringw. We then show how to extend this algorithm to compute smallest maximal palindromic factorizations of all prefixes ofw, consisting only of maximal palindromes (non-extensible palindromic substring) of each prefix, inO(nlogn) time andO(n) space, in an on-line manner. We also present an on-lineO(n)-timeO(n)-space algorithm to compute a smallest palindromic cover ofw.