English

A Linear-Time $n^{0.4}$-Approximation for Longest Common Subsequence

Data Structures and Algorithms 2021-06-16 v1

Abstract

We consider the classic problem of computing the Longest Common Subsequence (LCS) of two strings of length nn. While a simple quadratic algorithm has been known for the problem for more than 40 years, no faster algorithm has been found despite an extensive effort. The lack of progress on the problem has recently been explained by Abboud, Backurs, and Vassilevska Williams [FOCS'15] and Bringmann and K\"unnemann [FOCS'15] who proved that there is no subquadratic algorithm unless the Strong Exponential Time Hypothesis fails. This has led the community to look for subquadratic approximation algorithms for the problem. Yet, unlike the edit distance problem for which a constant-factor approximation in almost-linear time is known, very little progress has been made on LCS, making it a notoriously difficult problem also in the realm of approximation. For the general setting, only a naive O(nε/2)O(n^{\varepsilon/2})-approximation algorithm with running time O~(n2ε)\tilde{O}(n^{2-\varepsilon}) has been known, for any constant 0<ε10 < \varepsilon \le 1. Recently, a breakthrough result by Hajiaghayi, Seddighin, Seddighin, and Sun [SODA'19] provided a linear-time algorithm that yields a O(n0.497956)O(n^{0.497956})-approximation in expectation; improving upon the naive O(n)O(\sqrt{n})-approximation for the first time. In this paper, we provide an algorithm that in time O(n2ε)O(n^{2-\varepsilon}) computes an O~(n2ε/5)\tilde{O}(n^{2\varepsilon/5})-approximation with high probability, for any 0<ε10 < \varepsilon \le 1. Our result (1) gives an O~(n0.4)\tilde{O}(n^{0.4})-approximation in linear time, improving upon the bound of Hajiaghayi, Seddighin, Seddighin, and Sun, (2) provides an algorithm whose approximation scales with any subquadratic running time O(n2ε)O(n^{2-\varepsilon}), improving upon the naive bound of O(nε/2)O(n^{\varepsilon/2}) for any ε\varepsilon, and (3) instead of only in expectation, succeeds with high probability.

Keywords

Cite

@article{arxiv.2106.08195,
  title  = {A Linear-Time $n^{0.4}$-Approximation for Longest Common Subsequence},
  author = {Karl Bringmann and Vincent Cohen-Addad and Debarati Das},
  journal= {arXiv preprint arXiv:2106.08195},
  year   = {2021}
}

Comments

full version of ICALP'21 paper, abstract shortened to fit Arxiv requirements

R2 v1 2026-06-24T03:13:36.861Z