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 条
  • [1] Space-efficient algorithms for computing minimal/shortest unique substrings
    Mieno, Takuya
    Koppl, Dominik
    Nakashima, Yuto
    Inenaga, Shunsuke
    Bannai, Hideo
    Takeda, Masayuki
    THEORETICAL COMPUTER SCIENCE, 2020, 845 : 230 - 242
  • [2] Shortest Unique Substrings Queries in Optimal Time
    Tsuruta, Kazuya
    Inenaga, Shunsuke
    Bannai, Hideo
    Takeda, Masayuki
    SOFSEM 2014: THEORY AND PRACTICE OF COMPUTER SCIENCE, 2014, 8327 : 503 - 513
  • [3] Indexed Matching Statistics and Shortest Unique Substrings
    Belazzougui, Djamal
    Cunial, Fabio
    STRING PROCESSING AND INFORMATION RETRIEVAL, SPIRE 2014, 2014, 8799 : 179 - 190
  • [4] Genome comparison without alignment using shortest unique substrings
    Bernhard Haubold
    Nora Pierstorff
    Friedrich Möller
    Thomas Wiehe
    BMC Bioinformatics, 6
  • [5] Fast Algorithms for the Shortest Unique Palindromic Substring Problem on Run-Length Encoded Strings
    Kiichi Watanabe
    Yuto Nakashima
    Shunsuke Inenaga
    Hideo Bannai
    Masayuki Takeda
    Theory of Computing Systems, 2020, 64 : 1273 - 1291
  • [6] Fast Algorithms for the Shortest Unique Palindromic Substring Problem on Run-Length Encoded Strings
    Watanabe, Kiichi
    Nakashima, Yuto
    Inenaga, Shunsuke
    Bannai, Hideo
    Takeda, Masayuki
    THEORY OF COMPUTING SYSTEMS, 2020, 64 (07) : 1273 - 1291
  • [7] Shortest Unique Palindromic Substring Queries in Optimal Time
    Nakashima, Yuto
    Inoue, Hiroe
    Mieno, Takuya
    Inenaga, Shunsuke
    Bannai, Hideo
    Takeda, Masayuki
    COMBINATORIAL ALGORITHMS, IWOCA 2017, 2018, 10765 : 397 - 408
  • [8] Space-time trade-offs for finding shortest unique substrings and maximal unique matches
    Ganguly, Arnab
    Hon, Wing-Kai
    Shah, Rahul
    Thankachan, Sharma V.
    THEORETICAL COMPUTER SCIENCE, 2017, 700 : 75 - 88
  • [9] Shortest Unique Palindromic Substring Queries in Semi-dynamic Settings
    Mieno, Takuya
    Funakoshi, Mitsuru
    COMBINATORIAL ALGORITHMS (IWOCA 2022), 2022, 13270 : 425 - 438
  • [10] Parallel Methods for Finding k-Mismatch Shortest Unique Substrings Using GPU
    Schultz, Daniel W.
    Xu, Bojian
    IEEE-ACM TRANSACTIONS ON COMPUTATIONAL BIOLOGY AND BIOINFORMATICS, 2021, 18 (01) : 386 - 395