Algorithms and combinatorial properties on shortest unique palindromic substrings

被引:7
|
作者
Inoue, Hiroe [1 ]
Nakashima, Yuto [1 ]
Mieno, Takuya [1 ]
Inenaga, Shunsuke [1 ]
Bannai, Hideo [1 ]
Takeda, Masayuki [1 ]
机构
[1] Kyushu Univ, Dept Informat, Fukuoka, Japan
基金
日本学术振兴会;
关键词
String algorithm; Shortest unique substring (SUS); Palindrome; Rich word;
D O I
10.1016/j.jda.2018.11.009
中图分类号
O29 [应用数学];
学科分类号
070104 ;
摘要
A palindrome is a string that reads the same forward and backward. A palindromic substring P of a string S is called a shortest unique palindromic substring (SUPS) for an interval [s, t] in S, if P occurs exactly once in S, this occurrence of P contains interval [s, t], and every palindromic substring of S which contains interval [s, t] and is shorter than P occurs at least twice in S. The SUPS problem is, given a string S, to preprocess S so that for any subsequent query interval [s, t] all the SUPSs for interval [s, t] can be answered quickly. We present an optimal solution to this problem. Namely, we show how to preprocess a given string S of length n in Omicron (n) time and space so that all SUPSs for any subsequent query interval can be answered in Omicron (alpha + 1) time, where alpha is the number of outputs. We also discuss the number of SUPSs in a string. (C) 2018 Elsevier B.V. All rights reserved.
引用
收藏
页码:122 / 132
页数:11
相关论文
共 50 条