Edit distance: a (1+ε)-approximation in truly subquadratic time n2−δ
On this page17 sections
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).
The problem. For every constant , decide whether there exists and a (randomised) algorithm that outputs a -multiplicative approximation to in time : a truly subquadratic approximation scheme, polynomially faster than .
What is known.
- Constant-factor approximation in truly subquadratic time: Chakraborty, Das, Goldenberg, Koucký and Saks (FOCS 2018) in . In near-linear time with a constant depending on : Andoni and Nosatzki (FOCS 2020). Before that, a factor in time (Andoni, Krauthgamer, Onak 2010) and the large-distance case (Brakensiek and Rubinstein).
- Small constants: -approximations run in truly subquadratic time (Andoni 2018; Goldenberg, Rubinstein and Saha 2020, about ). An unrefereed October 2026 preprint by Gorbachev achieves a factor of exactly 3 (no ) in about time, slower than the of the methods. He states that a -approximation in truly subquadratic time would need new ideas, and that in truly subquadratic time is open.
- Barely subquadratic for : Mao and Rubinstein (accepted to STOC 2026) give a randomised -approximation in time , faster by a super-polylogarithmic but not polynomial factor.
- Lower bounds: no known fine-grained lower bound even excludes -approximation in time. Gorbachev also proves the metric assumption is necessary: for non-metric weights, any approximation needs oracle queries.
Why it is hard. The constant-factor algorithms split the strings into blocks and compare block centres, losing accuracy at every level. The jump from a factor 3 to seems to need a new idea for combining local information without losing a constant factor.
Payoff. Faster, nearly exact string comparison for genomics and text, if it were practical, and a clean test of whether the SETH-based hardness of exact edit distance is robust to approximation.
Go deeper
The full technical text.
Given two strings of length over a constant alphabet, edit distance is the minimum number of insertions, deletions and substitutions turning into . Exact computation takes time and cannot be done in unless SETH fails (Backurs–Indyk 2015). Problem: for every constant , decide whether there exist and a (randomized) algorithm that outputs a -multiplicative approximation to in time (a truly subquadratic, polynomially faster than running time), or prove that no such algorithm exists under a standard hypothesis.
Words on this page (11)
- edit distance
- The fewest single-letter insertions, deletions and substitutions needed to turn one text into another.
- approximation (1+ε)
- An answer guaranteed to be at most (1+ε) times the true value, for example within 1% if ε is 0.01.
- subquadratic time
- Running time growing slower than n times n.
- SETH
- The belief that logic puzzles with long rules need almost brute-force time.
- dynamic programming
- Solving a problem by combining solutions to smaller overlapping pieces, as in the classic edit-distance table.
- randomised algorithm
- A method that makes random choices and is correct with high probability.
- longest common subsequence
- The longest sequence of letters appearing in both texts in the same order.
- fine-grained complexity
- The study of exact running-time exponents inside polynomial time.
- metric
- A distance measure obeying the usual rules, such as the triangle inequality.
- truly subquadratic
- Running time like n to the power 2 minus a fixed positive number, a polynomial saving over n²; dividing by log factors does not count.
- triangle inequality
- The rule that going from A to C directly is never longer than going via B; it lets algorithms compare strings through shared "centre" strings.
New to this? Read first (3)
- Edit distance (Wikipedia)Definition, uses and the classic algorithm.
- Longest common subsequence (Wikipedia)A close cousin with the same kind of speed barrier.
- Approximation algorithm (Wikipedia)What 'within a factor' guarantees mean.
Built from
earlier problems → this oneThe earlier problems this one is built from. “Builds on” means it needs their progress or tools. “Generalizes” means they are special cases that come first. “Implies” means they are weaker results on the way. On the right is what builds on this problem.
- Start with
- P versus NP: does Boolean satisfiability have a polynomial-time algorithm?Complexity Theory · D100
- Step 2
- Exponential Time Hypothesis: does 3-SAT need 2δn time for some δ > 0?Complexity Theory · D90
- Step 3
- 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 n2−δ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 n2−δ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
To verify: 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
Where the work is
An algorithmic idea (or a new fine-grained hardness reduction) is needed; implementation would follow later.
Connected problems
- This problem builds on Strong Exponential Time Hypothesis: no (2−ε)ⁿ-time algorithm for k-SAT as k → ∞SETH gives the exact quadratic lower bound; the question is how far approximation can escape it.
- This problem is related to Routine automated gapless haplotype-resolved assembly of any human genome, including rDNA arraysSequence alignment inside assembly and variant calling is an edit-distance computation whose worst-case cost is the subject of this problem.
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, 2014Exact edit distance is SETH-hardsource
Backurs and Indyk rule out O(n^{2−δ}) exact algorithms under SETH (arXiv month; day approximate).