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 条
  • [31] Efficient algorithms for the longest common subsequence in k-length substrings
    Deorowicz, Sebastian
    Grabowski, Szymon
    INFORMATION PROCESSING LETTERS, 2014, 114 (11) : 634 - 638
  • [32] Combinatorial EM algorithms
    Ian C. Marschner
    Statistics and Computing, 2014, 24 : 921 - 940
  • [33] Combinatorial algorithms - Preface
    Iliopoulos, CS
    THEORETICAL COMPUTER SCIENCE, 2000, 249 (02) : 241 - 241
  • [34] Combinatorial EM algorithms
    Marschner, Ian C.
    STATISTICS AND COMPUTING, 2014, 24 (06) : 921 - 940
  • [35] Anytime algorithms for the longest common palindromic subsequence problem
    Djukanovic, Marko
    Raidl, Guenther R.
    Blum, Christian
    COMPUTERS & OPERATIONS RESEARCH, 2020, 114
  • [36] Shortest path algorithms: Engineering aspects
    Goldberg, AV
    ALGORITHMS AND COMPUTATION, PROCEEDINGS, 2001, 2223 : 502 - 513
  • [37] Improved algorithms for dynamic shortest paths
    Djidjev, HN
    Pantziou, GE
    Zaroliagis, CD
    ALGORITHMICA, 2000, 28 (04) : 367 - 389
  • [38] SHORTEST PATH WITH CONSTRAINTS - ALGORITHMS AND APPLICATIONS
    MINOUX, M
    ANNALES DES TELECOMMUNICATIONS-ANNALS OF TELECOMMUNICATIONS, 1975, 30 (11-1): : 383 - 394
  • [39] Shortest-path reconstruction algorithms
    Khoong, C.M., 1600, (36):
  • [40] Reach for A*: Shortest Path Algorithms with Preprocessing
    Goldberg, Andrew V.
    Kaplan, Haim
    Werneck, Renato F.
    SHORTEST PATH PROBLEM, 2009, 74 : 93 - +