Shortest unique palindromic substring queries in optimal time

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 \( SUPS \text {s}\) 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 O(n) time and space so that all \( SUPS \text {s}\) for any subsequent query interval can be answered in \(O(\alpha + 1)\) time, where \(\alpha \) is the number of outputs.

[1]  Osamu Yano,et al.  Oligonucleotide Sequences Required for Natural Killer Cell Activation , 1992, Japanese journal of cancer research : Gann.

[2]  Glenn K. Manacher,et al.  A New Linear-Time ``On-Line'' Algorithm for Finding the Smallest Initial Palindrome of a String , 1975, JACM.

[3]  Dan Gusfield,et al.  Algorithms on Strings, Trees, and Sequences - Computer Science and Computational Biology , 1997 .

[4]  Volker Heun,et al.  Theoretical and Practical Improvements on the RMQ-Problem, with Applications to LCA and LCE , 2006, CPM.

[5]  Jian Pei,et al.  Shortest Unique Queries on Strings , 2014, SPIRE.

[6]  Giuseppe Pirillo,et al.  Episturmian words and some constructions of de Luca and Rauzy , 2001, Theor. Comput. Sci..

[7]  Bojian Xu,et al.  Shortest Unique Substring Query Revisited , 2014, CPM.

[8]  Arseny M. Shur,et al.  EERTREE: An efficient data structure for processing palindromes in strings , 2018, Eur. J. Comb..

[9]  Juha Kärkkäinen,et al.  A subquadratic algorithm for minimum palindromic factorization , 2014, J. Discrete Algorithms.

[10]  Hideo Bannai,et al.  Computing Palindromic Factorizations and Palindromic Covers On-line , 2014, CPM.

[11]  Hideo Bannai,et al.  Shortest Unique Substring Queries on Run-Length Encoded Strings , 2016, MFCS.

[12]  Jian Pei,et al.  On shortest unique substring queries , 2013, 2013 IEEE 29th International Conference on Data Engineering (ICDE).

[13]  Michael A. Bender,et al.  The LCA Problem Revisited , 2000, LATIN.

[14]  Wing-Kai Hon,et al.  An In-place Framework for Exact and Approximate Shortest Unique Substring Queries , 2015, ISAAC.

[15]  Shunsuke Inenaga,et al.  Diverse Palindromic Factorization is NP-Complete , 2018, Int. J. Found. Comput. Sci..

[16]  Kazuya Tsuruta,et al.  Shortest Unique Substrings Queries in Optimal Time , 2014, SOFSEM.

[17]  Gwénaël Richomme,et al.  Counting distinct palindromes in a word in linear time , 2010, Inf. Process. Lett..

[18]  E. Kuramoto,et al.  Unique palindromic sequences in synthetic oligonucleotides are required to induce IFN [correction of INF] and augment IFN-mediated [correction of INF] natural killer activity. , 1992, Journal of immunology.