paper

Minimal unique palindromic substrings after single-character substitution

arXiv:2105.11693

Abstract

A palindrome is a string that reads the same forward and backward. A palindromic substring of a string is called a minimal unique palindromic substring (MUPS) of if occurs only once in and any proper palindromic substring of occurs at least twice in . MUPSs are utilized for answering the shortest unique palindromic substring problem, which is motivated by molecular biology [Inoue et al., 2018]. Given a string of length , all MUPSs of can be computed in time. In this paper, we study the problem of updating the set of MUPSs when a character in the input string is substituted by another character. We first analyze the number of changes of MUPSs when a character is substituted, and show that is in . Further, we present an algorithm that uses time and space for preprocessing, and updates the set of MUPSs in time where is the alphabet size. We also propose a variant of the algorithm, which runs in optimal time when the alphabet size is constant.

Minimal unique palindromic substrings after single-character substitution · wovepaper