Faster queries for longest substring palindrome after block edit

01/30/2019
by   Mitsuru Funakoshi, et al.
0

Palindromes are important objects in strings which have been extensively studied from combinatorial, algorithmic, and bioinformatics points of views. Manacher [J. ACM 1975] proposed a seminal algorithm that computes the longest substring palindromes (LSPals) of a given string in O(n) time, where n is the length of the string. In this paper, we consider the problem of finding the LSPal after the string is edited. We present an algorithm that uses O(n) time and space for preprocessing, and answers the length of the LSPals in O(ℓ + n) time, after a substring in T is replaced by a string of arbitrary length ℓ. This outperforms the query algorithm proposed in our previous work [CPM 2018] that uses O(ℓ + n) time for each query.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/14/2022

Space-Efficient STR-IC-LCS Computation

One of the most fundamental method for comparing two given strings A and...
research
08/18/2022

Algorithm to derive shortest edit script using Levenshtein distance algorithm

String similarity, longest common subsequence and shortest edit scripts ...
research
01/07/2020

Quantum Algorithms for the Most Frequently String Search, Intersection of Two String Sequences and Sorting of Strings Problems

We study algorithms for solving three problems on strings. The first one...
research
01/18/2022

Computing Longest (Common) Lyndon Subsequences

Given a string T with length n whose characters are drawn from an ordere...
research
05/30/2020

Longest Square Subsequence Problem Revisited

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

Finding Maximal Exact Matches in Graphs

We study the problem of finding maximal exact matches (MEMs) between a q...
research
07/17/2020

Adaptive Exact Learning in a Mixed-Up World: Dealing with Periodicity, Errors and Jumbled-Index Queries in String Reconstruction

We study the query complexity of exactly reconstructing a string from ad...

Please sign up or login with your details

Forgot password? Click here to reset