Space-Efficient STR-IC-LCS Computation

10/14/2022
by   Yuuki Yonemoto, et al.
0

One of the most fundamental method for comparing two given strings A and B is the longest common subsequence (LCS), where the task is to find (the length) of the longest common subsequence. In this paper, we address the STR-IC-LCS problem which is one of the constrained LCS problems proposed by Chen and Chao [J. Comb. Optim, 2011]. A string Z is said to be an STR-IC-LCS of three given strings A, B, and P, if Z is one of the longest common subsequences of A and B that contains P as a substring. We present a space efficient solution for the STR-IC-LCS problem. Our algorithm computes the length of an STR-IC-LCS in O(n^2) time and O((ℓ+1)(n-ℓ+1)) space where ℓ is the length of a longest common subsequence of A and B of length n. When ℓ = O(1) or n-ℓ = O(1), then our algorithm uses only linear O(n) space.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
01/16/2020

Faster STR-EC-LCS Computation

The longest common subsequence (LCS) problem is a central problem in str...
research
01/18/2022

Computing Longest (Common) Lyndon Subsequences

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

Faster queries for longest substring palindrome after block edit

Palindromes are important objects in strings which have been extensively...
research
09/18/2020

Longest Common Subsequence in Sublinear Space

We present the first o(n)-space polynomial-time algorithm for computing ...
research
08/22/2023

Quantum Circuits for Fixed Substring Matching Problems

Quantum computation represents a computational paradigm whose distinctiv...
research
12/03/2022

The Chvátal-Sankoff problem: Understanding random string comparison through stochastic processes

Given two equally long, uniformly random binary strings, the expected le...
research
10/04/2018

Longest Property-Preserved Common Factor

In this paper we introduce a new family of string processing problems. W...

Please sign up or login with your details

Forgot password? Click here to reset