Lune

STOC2023Top-tier venue

Approximating Binary Longest Common Subsequence in Almost-Linear Time

Xiaoyu He, Ray Li

Abstract

The Longest Common Subsequence (LCS) is a fundamental string similarity measure, and computing the LCS of two strings is a classic algorithms question. A textbook dynamic programming algorithm gives an exact algorithm in quadratic time, and this is essentially best possible under plausible finegrained complexity assumptions, so a natural problem is to find faster approximation algorithms. When the inputs are two binary strings, there is a simple 1 2 -approximation in linear time: compute the longest common all-0s or all-1s subsequence. It has been open whether a better approximation is possible even in truly subquadratic time. Rubinstein and Song showed that the answer is yes under the assumption that the two input strings have equal lengths. We settle the question, generalizing their result to unequal length strings, proving that, for any ε ą 0, there exists δ ą 0 and a p 1 2 δq-approximation algorithm for binary LCS that runs in n 1ε time. As a consequence of our result and a result of Akmal and Vassilevska-Williams, for any ε ą 0, there exists a p 1 q δq-approximation for LCS over q-ary strings in n 1ε time.

Our techniques build on the recent work of Guruswami, He, and Li who proved new bounds for error-correcting codes tolerating deletion errors. They prove a combinatorial "structure lemma" for strings which classifies them according to their oscillation patterns. We prove and use an algorithmic generalization of this structure lemma, which may be of independent interest.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

1 top-tier paper has cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Edit Distance in Near-Linear Time: it's a Constant Factor cites Constant factor approximations to edit distance on far input pairs in nearly linear time
  • Edit Distance in Near-Linear Time: it's a Constant Factor cites Reducing approximate Longest Common Subsequence to approximate Edit Distance
  • Edit Distance in Near-Linear Time: it's a Constant Factor cites Does preprocessing help in fast sequence comparisons?
  • Reducing approximate Longest Common Subsequence to approximate Edit Distance cites Constant factor approximations to edit distance on far input pairs in nearly linear time
  • Does preprocessing help in fast sequence comparisons? cites Constant factor approximations to edit distance on far input pairs in nearly linear time
  • Does preprocessing help in fast sequence comparisons? cites Reducing approximate Longest Common Subsequence to approximate Edit Distance
  • Approximation Schemes for Edit Distance and LCS in Quasi-Strongly Subquadratic Time cites Constant factor approximations to edit distance on far input pairs in nearly linear time
  • Approximation Schemes for Edit Distance and LCS in Quasi-Strongly Subquadratic Time cites Edit Distance in Near-Linear Time: it's a Constant Factor
  • Approximation Schemes for Edit Distance and LCS in Quasi-Strongly Subquadratic Time cites Reducing approximate Longest Common Subsequence to approximate Edit Distance
  • Approximation Schemes for Edit Distance and LCS in Quasi-Strongly Subquadratic Time cites Does preprocessing help in fast sequence comparisons?
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. Approximation Schemes for Edit Distance and LCS in Quasi-Strongly Subquadratic TimeXiao Mao, Aviad RubinsteinSTOC 2026 · 4 citations

Builds on7

  1. Edit Distance in Near-Linear Time: it's a Constant FactorAlexandr Andoni, Negev Shekel NosatzkiFOCS 2020 · 28 citations
  2. Reducing approximate Longest Common Subsequence to approximate Edit DistanceAviad Rubinstein, Zhao SongSODA 2020 · 24 citations
  3. Does preprocessing help in fast sequence comparisons?Elazar Goldenberg, Aviad Rubinstein, Barna SahaSTOC 2020 · 15 citations
  4. The zero-rate threshold for adversarial bit-deletions is less than 1/2Venkatesan Guruswami, Xiaoyu He, Ray LiFOCS 2021 · 6 citations
  5. Constant factor approximations to edit distance on far input pairs in nearly linear timeMichal Koucký, Michael E. SaksSTOC 2020 · 5 citations

Related papers

  1. Improved Algorithms for Edit Distance and LCS: Beyond Worst CaseMahdi Boroujeni, Masoud Seddighin, Saeed SeddighinSODA 2020 · 8 citations
  2. Constant-factor approximation of near-linear edit distance in near-linear timeJoshua Brakensiek, Aviad RubinsteinSTOC 2020 · 1 citation
  3. Near-Optimal Quantum Algorithms for Bounded Edit Distance and Lempel-Ziv FactorizationDaniel Gibney, Ce Jin, Tomasz Kociumaka, Sharma V. ThankachanSODA 2024 · 7 citations
  4. Quantum Speed-ups for String Synchronizing Sets, Longest Common Substring, and k-mismatch MatchingCe Jin, Jakob NoglerSODA 2023 · 10 citations
  5. Estimating the Longest Increasing Subsequence in Nearly Optimal TimeAlexandr Andoni, Negev Shekel Nosatzki, Sandip Sinha, Clifford SteinFOCS 2022 · 4 citations
Dusk over the sea between two cliffs drawn in fine vertical lines