Minimal unique palindromic substrings after single-character substitution

05/25/2021
by   Mitsuru Funakoshi, et al.
0

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

READ FULL TEXT

page 1

page 2

page 3

page 4

research
09/06/2019

Minimal Unique Substrings and Minimal Absent Words in a Sliding Window

A substring u of a string T is called a minimal unique substring (MUS) o...
research
04/15/2022

Shortest Unique Palindromic Substring Queries in Semi-dynamic Settings

A palindromic substring T[i.. j] of a string T is said to be a shortest ...
research
03/14/2019

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...
research
05/30/2020

Longest Square Subsequence Problem Revisited

The longest square subsequence (LSS) problem consists of computing a lon...
research
05/30/2019

Compact Data Structures for Shortest Unique Substring Queries

Given a string T of length n, a substring u = T[i.. j] of T is called a ...
research
01/13/2018

Longest Common Prefixes with k-Errors and Applications

Although real-world text datasets, such as DNA sequences, are far from b...
research
12/11/2020

String Tightening as a Self-Organizing Phenomenon: Computation of Shortest Homotopic Path, Smooth Path, and Convex Hull

The phenomenon of self-organization has been of special interest to the ...

Please sign up or login with your details

Forgot password? Click here to reset