Lune

FOCS2020Top-tier venue

Edit Distance in Near-Linear Time: it's a Constant Factor

Alexandr Andoni, Negev Shekel Nosatzki

Abstract

Abstract. We present an algorithm for approximating the edit distance between two strings of length [Formula: see text] in time [Formula: see text] up to a constant factor for any [Formula: see text]. Our result completes a research direction set forth in the recent breakthrough paper [ CDG[Formula: see text]18 ], which showed the first constant-factor approximation algorithm with a (strongly) subquadratic running time. Recent results [ KS20b , BR20 ] have shown near-linear time algorithms that obtain an additive approximation, near-linear in [Formula: see text] (equivalently, constant-factor approximation when the edit distance value is close to [Formula: see text]). In contrast, our algorithm obtains a constant-factor approximation in near-linear time for any input string. In contrast to prior algorithms, which are mostly recursing over smaller substrings, our algorithm gradually smoothes out the local contribution to the edit distance over progressively larger substrings. To accomplish this, we iteratively construct a distance oracle data structure for the metric of edit distance on all substrings of input strings of length [Formula: see text] for [Formula: see text]. The distance oracle approximates the edit distance over these substrings in a certain average sense, just enough to estimate the overall edit distance.

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.

17 top-tier papers have 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

  • Gap Edit Distance via Non-Adaptive Queries: Simple and Optimal cites Sublinear-Time Algorithms for Computing & Embedding Gap Edit Distance
  • Gap Edit Distance via Non-Adaptive Queries: Simple and Optimal cites Does preprocessing help in fast sequence comparisons?
  • Breaking the Cubic Barrier for (Unweighted) Tree Edit Distance cites Constant factor approximations to edit distance on far input pairs in nearly linear time
  • Reducing approximate Longest Common Subsequence to approximate Edit Distance cites Constant factor approximations to edit distance on far input pairs in nearly linear time
  • Sublinear-Time Algorithms for Computing & Embedding Gap Edit Distance cites Constant factor approximations to edit distance on far input pairs in nearly linear time
  • Sublinear-Time Algorithms for Computing & Embedding Gap Edit Distance cites Does preprocessing help in fast sequence comparisons?
  • 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
  • How Compression and Approximation Affect Efficiency in String Distance Measures cites Constant factor approximations to edit distance on far input pairs in nearly linear time
  • How Compression and Approximation Affect Efficiency in String Distance Measures cites Reducing approximate Longest Common Subsequence to approximate Edit Distance
  • How Compression and Approximation Affect Efficiency in String Distance Measures cites Does preprocessing help in fast sequence comparisons?
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers17

  1. Edit Distance Robust Watermarks via Indexing Pseudorandom CodesNoah Golowich, Ankur MoitraNeurIPS 2024 · 24 citations
  2. Sublinear-Time Algorithms for Computing & Embedding Gap Edit DistanceTomasz Kociumaka, Barna SahaFOCS 2020 · 9 citations
  3. Breaking the Cubic Barrier for (Unweighted) Tree Edit DistanceXiao MaoFOCS 2021 · 7 citations
  4. How Compression and Approximation Affect Efficiency in String Distance MeasuresArun Ganesh, Tomasz Kociumaka, Andrea Lincoln, Barna SahaSODA 2022 · 7 citations
  5. Gap Edit Distance via Non-Adaptive Queries: Simple and OptimalElazar Goldenberg, Tomasz Kociumaka, Robert Krauthgamer, Barna SahaFOCS 2022 · 5 citations

Builds on8

  1. Reducing approximate Longest Common Subsequence to approximate Edit DistanceAviad Rubinstein, Zhao SongSODA 2020 · 24 citations
  2. Does preprocessing help in fast sequence comparisons?Elazar Goldenberg, Aviad Rubinstein, Barna SahaSTOC 2020 · 15 citations
  3. Sublinear-Time Algorithms for Computing & Embedding Gap Edit DistanceTomasz Kociumaka, Barna SahaFOCS 2020 · 9 citations
  4. Gap Edit Distance via Non-Adaptive Queries: Simple and OptimalElazar Goldenberg, Tomasz Kociumaka, Robert Krauthgamer, Barna SahaFOCS 2022 · 5 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. Faster Sublinear-Time Edit DistanceKarl Bringmann, Alejandro Cassis, Nick Fischer, Tomasz KociumakaSODA 2024 · 3 citations
  2. Almost-optimal sublinear-time edit distance in the low distance regimeKarl Bringmann, Alejandro Cassis, Nick Fischer, Vasileios NakosSTOC 2022 · 4 citations
  3. Approximating Edit Distance in the Fully Dynamic ModelTomasz Kociumaka, Anish Mukherjee, Barna SahaFOCS 2023 · 1 citation
  4. Approximation Schemes for Edit Distance and LCS in Quasi-Strongly Subquadratic TimeXiao Mao, Aviad RubinsteinSTOC 2026 · 4 citations
  5. Constant-factor approximation of near-linear edit distance in near-linear timeJoshua Brakensiek, Aviad RubinsteinSTOC 2020 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines