Shortest Unique Palindromic Substring Queries on Run-Length Encoded Strings

For a string S, a palindromic substring S[i..j] is said to be a shortest unique palindromic substring (\( SUPS \)) for an interval [s, t] in S, if S[i..j] occurs exactly once in S, the interval [i, j] contains [s, t], and every palindromic substring containing [s, t] which is shorter than S[i..j] occurs at least twice in S. In this paper, we study the problem of answering \( SUPS \) queries on run-length encoded strings. We show how to preprocess a given run-length encoded string \( RLE _{S}\) of size m in O(m) space and \(O(m \log \sigma _{ RLE _{S}} + m \sqrt{\log m / \log \log m})\) time so that all \( SUPSs \) for any subsequent query interval can be answered in \(O(\sqrt{\log m / \log \log m} + \alpha )\) time, where \(\alpha \) is the number of outputs, and \(\sigma _{ RLE _{S}}\) is the number of distinct runs of \( RLE _{S}\).

[1]  Faith Ellen,et al.  Optimal Bounds for the Predecessor Problem and Related Problems , 2002, J. Comput. Syst. Sci..

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

[3]  Zvi Galil,et al.  Parallel Detection of all Palindromes in a String , 1995, Theor. Comput. Sci..

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

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

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

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

[8]  Hideo Bannai,et al.  Algorithms and combinatorial properties on shortest unique palindromic substrings , 2018, J. Discrete Algorithms.

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

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

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

[12]  Wing-Kai Hon,et al.  Space-time trade-offs for finding shortest unique substrings and maximal unique matches , 2017, Theor. Comput. Sci..

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

[14]  Ayumi Shinohara,et al.  Efficient algorithms to compute compressed longest common substrings and compressed palindromes , 2009, Theor. Comput. Sci..

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