paper

Shortest unique palindromic substring queries in optimal time

arXiv:1608.05550

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 $\mathit{SUPS}\mbox{s}$ 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 $\mathit{SUPS}\mbox{s}$ for any subsequent query interval can be answered in time, where is the number of outputs.

References in corpus (2)