Edit distance: a (1+ε)-approximation in truly subquadratic time n^(2−δ)
Difficulty 51: strong partial results (truly subquadratic factor 3, a super-polylogarithmic (1+ε) saving) narrow the gap, but the last step needs an idea beyond triangle-inequality routing and no hardness tool applies; research-grade, slightly easier than the CDCL proof-search theorem (54), harder than the smoothed-simplex problem (38) and far below SETH (88). Application value 26: concrete in bioinformatics and text processing, close to the APSP/3SUM hypotheses (24). Leverage 27.5: local to fine-grained approximation, just below the smoothed-simplex problem (28).
The problem
Can the edit distance of two long texts be approximated to within 1% much faster than comparing all position pairs?
- 1Exact edit distance needs n² steps
- 2Faster exact would break SETH
- 3Rough approximations are near-linear
- 4Within 1%: only tiny savings known
- 5Open: polynomially faster at any accuracy
Definition. For strings of length over a constant alphabet, the edit distance is the minimum number of insertions, deletions and substitutions turning into . Exact computation takes time by dynamic programming, and cannot be done in unless the Strong Exponential Time Hypothesis fails (Backurs and Indyk, 2015).
Built from
earlier problems → this oneThe problems this one is built from: progress or tools it needs (builds on), special cases that come first (generalizes), and weaker results on the way (implies). On the right, what builds on it.
- Start with
- P versus NP: does Boolean satisfiability have a polynomial-time algorithm?Complexity Theory · D100
- Step 2
- Strong Exponential Time Hypothesis: no (2−ε)ⁿ-time algorithm for k-SAT as k → ∞Complexity Theory · D88
- Then
- Edit distance: a (1+ε)-approximation in truly subquadratic time n^(2−δ)This problem
Path to understanding
foundations → problemThe research entries this problem rests on, in the order to read them. Each links to its explainer.
- Start with
- Step 2
- Step 3
- Fast matrix multiplicationAlgorithm
- Step 4
- Then
- Edit distance: a (1+ε)-approximation in truly subquadratic time n^(2−δ)The problem
State of the art
Constant-factor approximation is possible in truly subquadratic time (Chakraborty, Das, Goldenberg, Koucký and Saks, arXiv:1810.03664, FOCS 2018, Õ(n^{2−2/7})) and even in near-linear time n^{1+ε} with a constant depending on ε (Andoni–Nosatzki, arXiv:2005.07678, FOCS 2020), after earlier (log n)^{O(1/ε)} approximation in n^{1+ε} time (Andoni–Krauthgamer–Onak 2010) and the large-distance case (Brakensiek–Rubinstein, arXiv:1904.05390). For small constants, (3+ε)-approximations run in truly subquadratic time (Andoni 2018; Goldenberg–Rubinstein–Saha 2020, about n^{1.6}), and Gorbachev (arXiv:2610.01311, 1 October 2026, unrefereed preprint) gives a randomized factor-exactly-3 approximation in Õ(N^{11/6}) time (Õ(N^{40/21}) for arbitrary metric edit weights). In these algorithms the factor 3 comes from routing comparisons through shared 'center' strings by the triangle inequality, ed(U,Y[p..q)) ≤ r + ed(C,Y[p..q)) ≤ ed(U,Y[p..q)) + 2r, and the +ε from sample-based search; Gorbachev pays for the vanishing excess by moving each center one edit closer to its block (handled with implicit DIST matrices), at the price of a slower exponent than the N^{1.6+o(1)} of Goldenberg–Rubinstein–Saha. He states that a (3−δ)-approximation in truly subquadratic time would need new ideas, that (1+ε) in truly subquadratic time is open, and that no known fine-grained lower bound even excludes (1+ε) in O(N) time. He also proves that the metric assumption is necessary: for non-metric weights, any approximation needs Ω(N²) oracle queries, and is OV-hard over constant alphabets. On the (1+ε) side, Mao and Rubinstein (arXiv:2603.29702, accepted to STOC 2026) give randomized (1+ε)-approximation for edit distance (and (1−ε) for LCS) in time n²/2^{log^{Ω(1)} n}, a super-polylogarithmic but not polynomial saving, which separates approximate from exact edit distance (the latter cannot be sped up beyond polylogarithmic factors under the hypotheses of Abboud–Hansen–Vassilevska Williams–Williams). Haeupler, Rubinstein and Shahrasbi (arXiv:1810.11863) obtain (1+ε) in near-linear time only for strings with an indexing structure. Whether (1+ε) is achievable in n^{2−δ} time for general strings is open.
Realistic applications
Edit distance underlies sequence alignment in genomics, spelling and plagiarism detection and version control; a (1+ε) subquadratic algorithm would speed these pipelines at a 1% error level on long sequences, and a hardness result would justify heuristics.
What counts as solved
Either a randomized or deterministic algorithm with (1+ε)-approximation in time O(n^{2−δ}) for every fixed ε>0, or a proof (conditional on a standard hypothesis such as SETH or a fine-grained hypothesis) that for some ε>0 no such algorithm exists.
How it gets verified
Expert reviewOnly expert review of the argument is possible today.
Either a (1+eps)-approximation in time O(n^(2-delta)) or a conditional hardness proof (for example from SETH). Both are asymptotic claims about running time, with no formal model in Mathlib, so experts check them. An implementation can be tested for approximation quality on benchmarks, which supports but does not establish the time bound.
Claims under verification
+ add a claimNo claimed results on the Verification board for this problem yet.
Where the work is
An algorithmic idea (or a new fine-grained hardness reduction) is needed; implementation would follow later.
Bottlenecks
ranked by votes- #1TheorySubquadratic small-constant algorithms stop at factor 3
All known truly subquadratic algorithms with small constant factors combine sampling with routing through intermediate substrings via the triangle inequality, which loses a factor of 3; a (1+ε) algorithm needs a different decomposition of the alignment.
Community grades
Sign in to add your own grade.
Connected problems
Progress
- Oct 1, 2026Factor-3 approximation in Õ(N^{11/6}) (preprint)source
Gorbachev removes the +ε from the (3+ε) factor in truly subquadratic time, at a slower exponent than the 3+ε algorithms, and extends it to metric weights in Õ(N^{40/21}). Unrefereed; it does not move the 1+ε question.
- Mar 31, 2026(1+ε)-approximation in n²/2^{log^{Ω(1)} n} timesource
Mao and Rubinstein: approximation schemes for edit distance and LCS (STOC 2026).
- May 15, 2020Constant factor in near-linear timesource
Andoni and Nosatzki: a constant-factor approximation in n^{1+ε} time.
- Oct 8, 2018Constant factor in truly subquadratic timesource
Chakraborty, Das, Goldenberg, Koucký and Saks break the quadratic barrier for constant-factor approximation (arXiv month; day approximate).
- Dec 1, 2014