Longest Common Factor Made Fully Dynamic

04/23/2018
by   Amihood Amir, et al.
0

In the longest common factor (LCF) problem, we are given two strings S and T, each of length at most n, and we are asked to find a longest string occurring in both S and T. This is a classical and well-studied problem in computer science. The LCF length for two strings can vary greatly even when a single character is changed. A data structure that can be built in Õ(n) (The Õ notation suppresses ^O(1) n factors.) time and can return an LCF of the two strings after a single edit operation (that is reverted afterwards) in Õ(1) time was very recently proposed as a first step towards the study of the fully dynamic LCF problem. In the fully dynamic version, edit operations are allowed in any of the two strings, and we are to report an LCF after each such operation. We present the first algorithm that requires strongly sublinear time per edit operation. In particular, we show how to return an LCF in Õ(n^3/4) time after each operation using Õ(n) space. We also present an algorithm with Õ(√(n)) query time for the restricted case where edits are allowed only in one of the two strings and faster algorithms for several restricted variants of dynamic and internal LCF problems (here `internal' means that we are to answer queries about LCF on multiple factors of a given text).

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/17/2020

Towards Efficient Interactive Computation of Dynamic Time Warping Distance

The dynamic time warping (DTW) is a widely-used method that allows us to...
research
08/10/2018

Dynamic all scores matrices for LCS score

The problem of aligning two strings A,B in order to determine their simi...
research
06/28/2020

Random Access in Persistent Strings

We consider compact representations of collections of similar strings th...
research
10/05/2022

Internal Longest Palindrome Queries in Optimal Time

Palindromes are strings that read the same forward and backward. Problem...
research
01/03/2021

Text Searching Allowing for Non-Overlapping Adjacent Unbalanced Translocations

In this paper we investigate the approximate string matching problem whe...
research
05/20/2019

Prefix Block-Interchanges on Binary and Ternary Strings

The genome rearrangement problem computes the minimum number of operatio...
research
07/25/2023

A Compact DAG for Storing and Searching Maximal Common Subsequences

Maximal Common Subsequences (MCSs) between two strings X and Y are subse...

Please sign up or login with your details

Forgot password? Click here to reset