Sketching, Streaming, and Fine-Grained Complexity of (Weighted) LCS

10/02/2018
by   Karl Bringmann, et al.
0

We study sketching and streaming algorithms for the Longest Common Subsequence problem (LCS) on strings of small alphabet size |Σ|. For the problem of deciding whether the LCS of strings x,y has length at least L, we obtain a sketch size and streaming space usage of O(L^|Σ| - 1 L). We also prove matching unconditional lower bounds. As an application, we study a variant of LCS where each alphabet symbol is equipped with a weight that is given as input, and the task is to compute a common subsequence of maximum total weight. Using our sketching algorithm, we obtain an O(min{nm, n + m^Σ})-time algorithm for this problem, on strings x,y of length n,m, with n > m. We prove optimality of this running time up to lower order factors, assuming the Strong Exponential Time Hypothesis.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/07/2021

Improved Approximation for Longest Common Subsequence over Small Alphabets

This paper investigates the approximability of the Longest Common Subseq...
research
03/02/2018

Multivariate Fine-Grained Complexity of Longest Common Subsequence

We revisit the classic combinatorial pattern matching problem of finding...
research
05/11/2023

Optimal Algorithms for Bounded Weighted Edit Distance

The edit distance of two strings is the minimum number of insertions, de...
research
01/13/2019

Longest Common Subsequence on Weighted Sequences

We consider the general problem of the Longest Common Subsequence (LCS) ...
research
03/01/2021

Lower Bounds and Improved Algorithms for Asymmetric Streaming Edit Distance and Longest Common Subsequence

In this paper, we study edit distance (ED) and longest common subsequenc...
research
12/22/2017

Longest common substring with approximately k mismatches

In the longest common substring problem we are given two strings of leng...
research
04/27/2020

The Streaming k-Mismatch Problem: Tradeoffs between Space and Total Time

We revisit the k-mismatch problem in the streaming model on a pattern of...

Please sign up or login with your details

Forgot password? Click here to reset