English

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

Data Structures and Algorithms 2018-10-03 v1

Abstract

We study sketching and streaming algorithms for the Longest Common Subsequence problem (LCS) on strings of small alphabet size Σ|\Sigma|. For the problem of deciding whether the LCS of strings x,yx,y has length at least LL, we obtain a sketch size and streaming space usage of O(LΣ1logL)\mathcal{O}(L^{|\Sigma| - 1} \log 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Σ})\mathcal{O}(\textrm{min}\{nm, n + m^{{\lvert \Sigma \rvert}}\})-time algorithm for this problem, on strings x,yx,y of length n,mn,m, with nmn \ge m. We prove optimality of this running time up to lower order factors, assuming the Strong Exponential Time Hypothesis.

Keywords

Cite

@article{arxiv.1810.01238,
  title  = {Sketching, Streaming, and Fine-Grained Complexity of (Weighted) LCS},
  author = {Karl Bringmann and Bhaskar Ray Chaudhury},
  journal= {arXiv preprint arXiv:1810.01238},
  year   = {2018}
}

Comments

To appear in FSTTCS 2018