Shortest unique palindromic substring queries in optimal time
Yuto Nakashima, Hiroe Inoue, Takuya Mieno, Shunsuke Inenaga, Hideo, Bannai, Masayuki Takeda

TL;DR
This paper introduces an optimal preprocessing method for strings that allows quick retrieval of shortest unique palindromic substrings covering any query interval, significantly improving efficiency for such queries.
Contribution
It presents the first optimal solution to preprocess a string in linear time for fast retrieval of shortest unique palindromic substrings for any interval.
Findings
Preprocessing time and space are both O(n).
Query time for all SUPS is O(k+1), where k is the number of results.
The solution is optimal in both preprocessing and query efficiency.
Abstract
A palindrome is a string that reads the same forward and backward. A palindromic substring of a string is called a shortest unique palindromic substring () for an interval in , if occurs exactly once in , this occurrence of contains interval , and every palindromic substring of which contains interval and is shorter than occurs at least twice in . The problem is, given a string , to preprocess so that for any subsequent query interval all the for interval can be answered quickly. We present an optimal solution to this problem. Namely, we show how to preprocess a given string of length in time and space so that all for any subsequent query interval can be answered in time, where is the number of…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAlgorithms and Data Compression · semigroups and automata theory · DNA and Biological Computing
