Almost-optimal sublinear-time edit distance in the low distance regime
Karl Bringmann, Alejandro Cassis, Nick Fischer, Vasileios Nakos
Abstract
We revisit the task of computing the edit distance in sublinear time. In the (k, K)-gap edit distance problem we are given oracle access to two strings of length n and the task is to distinguish whether their edit distance is at most k or at least K. It has been established by Goldenberg, Krauthgamer and Saha (FOCS '19), with improvements by Kociumaka and Saha (FOCS '20), that the (k, k 2 )-gap problem can be solved in time O(n/k + poly(k)). One of the most natural questions in this line of research is whether the (k, k 2 )-gap is best-possible for the running time O(n/k + poly(k)).
In this work we answer this question by significantly improving the gap. Specifically, we show that in time O(n/k + poly(k)) we can even solve the (k, k 1+o(1) )-gap problem. This is the first algorithm that breaks the (k, k 2 )-gap in this running time. Our algorithm is almost optimal in the following sense: In the low distance regime (k ≤ n 0.19 ) our running time becomes O(n/k), which matches a known n/k 1+o(1) lower bound for the (k, k 1+o(1) )-gap problem up to lower order factors.
Our result also reveals a surprising similarity of Hamming distance and edit distance in the low distance regime: For both, the (k, k 1+o( 1) )-gap problem has time complexity n/k 1±o(1) for small k.
In contrast to previous work, which employed a subsampled variant of the Landau-Vishkin algorithm, we instead build upon the algorithm of Andoni, Krauthgamer and Onak (FOCS '10) which approximates the edit distance in almost-linear time O(n 1+ε ) within a polylogarithmic factor. We first simplify their approach and then show how to to effectively prune their computation tree in order to obtain a sublinear-time algorithm in the given time bound. Towards that, we use a variety of structural insights on the (local and global) patterns that can emerge during this process and design appropriate property testers to effectively detect these patterns.
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.
7 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Gap Edit Distance via Non-Adaptive Queries: Simple and Optimal cites Edit Distance in Near-Linear Time: it's a Constant Factor
- Edit Distance in Near-Linear Time: it's a Constant Factor cites Gap Edit Distance via Non-Adaptive Queries: Simple and Optimal
- Gap Edit Distance via Non-Adaptive Queries: Simple and Optimal cites Sublinear-Time Algorithms for Computing & Embedding Gap Edit Distance
- Constant-factor approximation of near-linear edit distance in near-linear time cites Constant factor approximations to edit distance on far input pairs in nearly linear time
- Constant factor approximations to edit distance on far input pairs in nearly linear time cites Constant-factor approximation of near-linear edit distance in near-linear time
- Edit Distance in Near-Linear Time: it's a Constant Factor cites Constant-factor approximation of near-linear edit distance in near-linear time
- 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 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
- Sublinear-Time Algorithms for Computing & Embedding Gap Edit Distance cites Constant-factor approximation of near-linear edit distance in near-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
- Near-Optimal Quantum Algorithms for Bounded Edit Distance and Lempel-Ziv Factorization cites Sublinear-Time Algorithms for Computing & Embedding Gap Edit Distance
- Faster Sublinear-Time Edit Distance cites Gap Edit Distance via Non-Adaptive Queries: Simple and Optimal
- Faster Sublinear-Time Edit Distance cites Constant-factor approximation of near-linear edit distance in near-linear time
- Faster Sublinear-Time Edit Distance cites Constant factor approximations to edit distance on far input pairs in nearly linear time
- 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
- Approximation Schemes for Edit Distance and LCS in Quasi-Strongly Subquadratic Time cites Gap Edit Distance via Non-Adaptive Queries: Simple and Optimal
- Approximation Schemes for Edit Distance and LCS in Quasi-Strongly Subquadratic Time cites Constant-factor approximation of near-linear edit distance in near-linear time
- 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 Sublinear-Time Algorithms for Computing & Embedding Gap Edit Distance
- Approximation Schemes for Edit Distance and LCS in Quasi-Strongly Subquadratic Time cites Faster Sublinear-Time Edit Distance
Cited by top-tier papers7
- Edit Distance in Near-Linear Time: it's a Constant FactorAlexandr Andoni, Negev Shekel NosatzkiFOCS 2020 · 28 citations
- Near-Optimal Quantum Algorithms for Bounded Edit Distance and Lempel-Ziv FactorizationDaniel Gibney, Ce Jin, Tomasz Kociumaka, Sharma V. ThankachanSODA 2024 · 7 citations
- Gap Edit Distance via Non-Adaptive Queries: Simple and OptimalElazar Goldenberg, Tomasz Kociumaka, Robert Krauthgamer, Barna SahaFOCS 2022 · 5 citations
- Approximation Schemes for Edit Distance and LCS in Quasi-Strongly Subquadratic TimeXiao Mao, Aviad RubinsteinSTOC 2026 · 4 citations
- Faster Sublinear-Time Edit DistanceKarl Bringmann, Alejandro Cassis, Nick Fischer, Tomasz KociumakaSODA 2024 · 3 citations
Builds on5
- Edit Distance in Near-Linear Time: it's a Constant FactorAlexandr Andoni, Negev Shekel NosatzkiFOCS 2020 · 28 citations
- Sublinear-Time Algorithms for Computing & Embedding Gap Edit DistanceTomasz Kociumaka, Barna SahaFOCS 2020 · 9 citations
- Gap Edit Distance via Non-Adaptive Queries: Simple and OptimalElazar Goldenberg, Tomasz Kociumaka, Robert Krauthgamer, Barna SahaFOCS 2022 · 5 citations
- Constant factor approximations to edit distance on far input pairs in nearly linear timeMichal Koucký, Michael E. SaksSTOC 2020 · 5 citations
- Constant-factor approximation of near-linear edit distance in near-linear timeJoshua Brakensiek, Aviad RubinsteinSTOC 2020 · 1 citation
Related papers
- Optimal Algorithms for Bounded Weighted Edit DistanceAlejandro Cassis, Tomasz Kociumaka, Philip WellnitzFOCS 2023 · 4 citations
- Bounded Edit Distance: Optimal Static and Dynamic Algorithms for Small Integer WeightsEgor Gorbachev, Tomasz KociumakaSTOC 2025 · 1 citation
- Reducing approximate Longest Common Subsequence to approximate Edit DistanceAviad Rubinstein, Zhao SongSODA 2020 · 24 citations
- Does preprocessing help in fast sequence comparisons?Elazar Goldenberg, Aviad Rubinstein, Barna SahaSTOC 2020 · 15 citations
- Approximating text-to-pattern Hamming distancesTimothy M. Chan, Shay Golan, Tomasz Kociumaka, Tsvi Kopelowitz et al.STOC 2020 · 2 citations
