Faster Sublinear-Time Edit Distance
Karl Bringmann, Alejandro Cassis, Nick Fischer, Tomasz Kociumaka
Abstract
We study the fundamental problem of approximating the edit distance of two strings. After an extensive line of research led to the development of a constant-factor approximation algorithm in almost-linear time, recent years have witnessed a notable shift in focus towards sublineartime algorithms. Here, the task is typically formalized as the (k, K)-gap edit distance problem: Distinguish whether the edit distance of two strings is at most k or more than K.
Surprisingly, it is still possible to compute meaningful approximations in this challenging regime. Nevertheless, in almost all previous work, truly sublinear running time of O(n 1-ε ) (for a constant ε > 0) comes at the price of at least polynomial gap K ≥ k • n Ω(ε) . Only recently, [Bringmann, Cassis, Fischer, and Nakos; STOC '22] broke through this barrier and solved the sub-polynomial (k, k 1+o(1) )-gap edit distance problem in time O(n/k +k 4+o( 1) ), which is truly sublinear if n Ω(1) ≤ k ≤ n 1 4 -Ω(1) . The n/k term is inevitable (already for Hamming distance), but it remains an important task to optimize the poly(k) term and, in general, solve the (k, k 1+o( 1) )-gap edit distance problem in sublinear-time for larger values of k.
In this work, we design an improved algorithm for the (k, k 1+o( 1) )-gap edit distance problem in sublinear time O(n/k + k 2+o( 1) ), yielding a significant quadratic speed-up over the previous O(n/k + k 4+o(1) )-time algorithm. Notably, our algorithm is unconditionally almost-optimal (up to subpolynomial factors) in the regime where k ≤ n 1 3 and improves upon the state of the art for k ≤ n 1 2 -o(1) . Similarly to previous results, our algorithm is based on the framework of [Andoni, Krauthgamer, and Onak; FOCS '10], and thus we can further reduce the gap to polylogarithmic (K = k • (log k) O(1/ε) ) at the cost of increasing our running time by a factor k ε .
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext ab63f250-e60d-4738-acdc-badab1e0088bCited by top-tier papers2
- Approximation Schemes for Edit Distance and LCS in Quasi-Strongly Subquadratic TimeXiao Mao, Aviad RubinsteinSTOC 2026 · 4 citations
- Bounded Edit Distance: Optimal Static and Dynamic Algorithms for Small Integer WeightsEgor Gorbachev, Tomasz KociumakaSTOC 2025 · 1 citation
Builds on8
- Edit Distance in Near-Linear Time: it's a Constant FactorAlexandr Andoni, Negev Shekel NosatzkiFOCS 2020 · 28 citations
- Does preprocessing help in fast sequence comparisons?Elazar Goldenberg, Aviad Rubinstein, Barna SahaSTOC 2020 · 15 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
Related papers
- Almost-optimal sublinear-time edit distance in the low distance regimeKarl Bringmann, Alejandro Cassis, Nick Fischer, Vasileios NakosSTOC 2022 · 4 citations
- Reducing approximate Longest Common Subsequence to approximate Edit DistanceAviad Rubinstein, Zhao SongSODA 2020 · 24 citations
- Optimal Algorithms for Bounded Weighted Edit DistanceAlejandro Cassis, Tomasz Kociumaka, Philip WellnitzFOCS 2023 · 4 citations
- Approximating Edit Distance in the Fully Dynamic ModelTomasz Kociumaka, Anish Mukherjee, Barna SahaFOCS 2023 · 1 citation
- Weighted Edit Distance Computation: Strings, Trees, and DyckDebarati Das, Jacob Gilbert, MohammadTaghi Hajiaghayi, Tomasz Kociumaka et al.STOC 2023 · 4 citations
