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 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 a427130c-5d98-438f-9794-c658d7ac4057Cited 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
