Lune

FOCS2022Top-tier venue

Gap Edit Distance via Non-Adaptive Queries: Simple and Optimal

Elazar Goldenberg, Tomasz Kociumaka, Robert Krauthgamer, Barna Saha

Abstract

We study the problem of approximating edit distance in sublinear time. This is formalized as the (k, kc)(k,\ k^{\mathrm{c}})-GAP EDIT DISTANCE problem, where the input is a pair of strings X,YX, \mathrm{Y} and parameters k,c>1k, c\gt 1, and the goal is to return YES if ED(X, Y) ≤k\leq k, NO if ED(X, Y) >kc\gt k^{\mathrm{c}}, and an arbitrary answer when k<k\lt ED(X, Y) ≤kc\leq k^{\mathrm{c}}. Recent years have witnessed significant interest in designing sublinear-time algorithms for GAP EDIT DISTANCE.In this work, we resolve the non-adaptive query complexity of GAP EDIT DISTANCE for the entire range of parameters, improving over a sequence of previous results. Specifically, we design a non-adaptive algorithm with query complexity O~(n/kc−O.5)\tilde{O}(n/k^{\mathrm{c}-\mathrm{O}.5}), and we further prove that this bound is optimal up to polylogarithmic factors.Our algorithm also achieves optimal time complexity O~(n/kc−O.5)\tilde{O}(n/k^{\mathrm{c}-\mathrm{O}.5}) whenever c≥ c\geq 1.5. For 1<c<1 \lt c\lt 1.5, the running time of our algorithm is O~(n/k2c−2)\tilde{O}(n/k^{2\mathrm{c}-2}). In the restricted case of kc=Ω(n)k^{\mathrm{c}}=\Omega(n), this matches a known result [Batu, Ergün, Kilian, Magen, Raskhodnikova, Rubinfeld, and Sami; STOC 2003], and in all other (nontrivial) cases, our running time is strictly better than all previous algorithms, including the adaptive ones. However, independent work of Bringmann, Cassis, Fischer, and Nakos [STOC 2022] provides an adaptive algorithm that bypasses the non-adaptive lower bound, but only for small enough k and c.

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.

9 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

  • Edit Distance in Near-Linear Time: it's a Constant Factor cites Sublinear-Time Algorithms for Computing & Embedding Gap Edit Distance
  • Sublinear-Time Algorithms for Computing & Embedding Gap Edit Distance cites Edit Distance in Near-Linear Time: it's a Constant Factor
  • Edit Distance in Near-Linear Time: it's a Constant Factor cites Almost-optimal sublinear-time edit distance in the low distance regime
  • Almost-optimal sublinear-time edit distance in the low distance regime cites Edit Distance in Near-Linear Time: it's a Constant Factor
  • Edit Distance in Near-Linear Time: it's a Constant Factor cites Does preprocessing help in fast sequence comparisons?
  • Sublinear-Time Algorithms for Computing & Embedding Gap Edit Distance cites Does preprocessing help in fast sequence comparisons?
  • Almost-optimal sublinear-time edit distance in the low distance regime cites Sublinear-Time Algorithms for Computing & Embedding Gap Edit Distance
  • Faster Sublinear-Time Edit Distance cites Edit Distance in Near-Linear Time: it's a Constant Factor
  • Faster Sublinear-Time Edit Distance cites Sublinear-Time Algorithms for Computing & Embedding Gap Edit Distance
  • Faster Sublinear-Time Edit Distance cites Almost-optimal sublinear-time edit distance in the low distance regime
  • Faster Sublinear-Time Edit Distance cites Does preprocessing help in fast sequence comparisons?
  • 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 Sublinear-Time Algorithms for Computing & Embedding Gap Edit Distance
  • Approximation Schemes for Edit Distance and LCS in Quasi-Strongly Subquadratic Time cites Almost-optimal sublinear-time edit distance in the low distance regime
  • Approximation Schemes for Edit Distance and LCS in Quasi-Strongly Subquadratic Time cites Faster Sublinear-Time Edit Distance
  • Approximation Schemes for Edit Distance and LCS in Quasi-Strongly Subquadratic Time cites Does preprocessing help in fast sequence comparisons?
  • Approximation Schemes for Edit Distance and LCS in Quasi-Strongly Subquadratic Time cites Optimal Algorithms for Bounded Weighted Edit Distance
  • Optimal Algorithms for Bounded Weighted Edit Distance cites Sublinear-Time Algorithms for Computing & Embedding Gap Edit Distance
  • Optimal Algorithms for Bounded Weighted Edit Distance cites Does preprocessing help in fast sequence comparisons?
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers9

  1. Edit Distance in Near-Linear Time: it's a Constant FactorAlexandr Andoni, Negev Shekel NosatzkiFOCS 2020 · 28 citations
  2. Almost-optimal sublinear-time edit distance in the low distance regimeKarl Bringmann, Alejandro Cassis, Nick Fischer, Vasileios NakosSTOC 2022 · 4 citations
  3. Approximation Schemes for Edit Distance and LCS in Quasi-Strongly Subquadratic TimeXiao Mao, Aviad RubinsteinSTOC 2026 · 4 citations
  4. Optimal Algorithms for Bounded Weighted Edit DistanceAlejandro Cassis, Tomasz Kociumaka, Philip WellnitzFOCS 2023 · 4 citations
  5. Faster Sublinear-Time Edit DistanceKarl Bringmann, Alejandro Cassis, Nick Fischer, Tomasz KociumakaSODA 2024 · 3 citations

Builds on5

  1. Edit Distance in Near-Linear Time: it's a Constant FactorAlexandr Andoni, Negev Shekel NosatzkiFOCS 2020 · 28 citations
  2. Does preprocessing help in fast sequence comparisons?Elazar Goldenberg, Aviad Rubinstein, Barna SahaSTOC 2020 · 15 citations
  3. Improved Sublinear Time Algorithm for Longest Increasing SubsequenceMichael Mitzenmacher, Saeed SeddighinSODA 2021 · 10 citations
  4. Sublinear-Time Algorithms for Computing & Embedding Gap Edit DistanceTomasz Kociumaka, Barna SahaFOCS 2020 · 9 citations
  5. Almost-optimal sublinear-time edit distance in the low distance regimeKarl Bringmann, Alejandro Cassis, Nick Fischer, Vasileios NakosSTOC 2022 · 4 citations

Related papers

  1. Reducing approximate Longest Common Subsequence to approximate Edit DistanceAviad Rubinstein, Zhao SongSODA 2020 · 24 citations
  2. Bounded Edit Distance: Optimal Static and Dynamic Algorithms for Small Integer WeightsEgor Gorbachev, Tomasz KociumakaSTOC 2025 · 1 citation
  3. Approximating Edit Distance in the Fully Dynamic ModelTomasz Kociumaka, Anish Mukherjee, Barna SahaFOCS 2023 · 1 citation
  4. Improved Algorithms for Edit Distance and LCS: Beyond Worst CaseMahdi Boroujeni, Masoud Seddighin, Saeed SeddighinSODA 2020 · 8 citations
  5. Near-Optimal-Time Quantum Algorithms for Approximate Pattern MatchingTomasz Kociumaka, Jakob Nogler, Philip WellnitzSODA 2025 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines