Skip to content
DAH

Edit distance: a (1+ε)-approximation in truly subquadratic time n2−δ

OpenTo verify: Expert reviewPosed by Backurs and Indyk (2015) proved exact edit distance SETH-hard; the approximation question goes back to Andoni, Krauthgamer and Onak (2010) and earlier
AI-reviewed
On this page17 sections
Difficulty
51/100Research-grade
How far from a resolution. P vs NP = 100
Application value
26/100Indirect
Realistic practical impact if resolved. P vs NP = 100
Leverage
27.5/100Local
How much other knowledge hinges on it. P vs NP = 100

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?

  1. 1Exact edit distance needs n² steps
  2. 2Faster exact would break SETH
  3. 3Rough approximations are near-linear
  4. 4Within 1%: only tiny savings known
  5. 5Open: polynomially faster at any accuracy

Definition. For strings x,yx,y of length nn over a constant alphabet, the edit distance ED(x,y)\mathrm{ED}(x,y) is the minimum number of insertions, deletions and substitutions turning xx into yy. Exact computation takes O(n2)O(n^2) time by dynamic programming, and cannot be done in O(n2−ε)O(n^{2-\varepsilon}) unless the Strong Exponential Time Hypothesis fails (Backurs and Indyk, 2015).

The problem. For every constant ε>0\varepsilon>0, decide whether there exists δ=δ(ε)>0\delta=\delta(\varepsilon)>0 and a (randomised) algorithm that outputs a (1+ε)(1+\varepsilon)-multiplicative approximation to ED(x,y)\mathrm{ED}(x,y) in time O(n2−δ)O(n^{2-\delta}): a truly subquadratic approximation scheme, polynomially faster than n2n^2.

What is known.

  • Constant-factor approximation in truly subquadratic time: Chakraborty, Das, Goldenberg, Koucký and Saks (FOCS 2018) in O~(n2−2/7)\tilde O(n^{2-2/7}). In near-linear time n1+εn^{1+\varepsilon} with a constant depending on ε\varepsilon: Andoni and Nosatzki (FOCS 2020). Before that, a (log⁡n)O(1/ε)(\log n)^{O(1/\varepsilon)} factor in n1+εn^{1+\varepsilon} time (Andoni, Krauthgamer, Onak 2010) and the large-distance case (Brakensiek and Rubinstein).
  • Small constants: (3+ε)(3+\varepsilon)-approximations run in truly subquadratic time (Andoni 2018; Goldenberg, Rubinstein and Saha 2020, about n1.6n^{1.6}). An unrefereed October 2026 preprint by Gorbachev achieves a factor of exactly 3 (no +ε+\varepsilon) in about n11/6n^{11/6} time, slower than the n1.6n^{1.6} of the (3+ε)(3+\varepsilon) methods. He states that a (3−δ)(3-\delta)-approximation in truly subquadratic time would need new ideas, and that (1+ε)(1+\varepsilon) in truly subquadratic time is open.
  • Barely subquadratic for (1+ε)(1+\varepsilon): Mao and Rubinstein (accepted to STOC 2026) give a randomised (1+ε)(1+\varepsilon)-approximation in time n2/2log⁡Ω(1)nn^2/2^{\log^{\Omega(1)}n}, faster by a super-polylogarithmic but not polynomial factor.
  • Lower bounds: no known fine-grained lower bound even excludes (1+ε)(1+\varepsilon)-approximation in O(n)O(n) time. Gorbachev also proves the metric assumption is necessary: for non-metric weights, any approximation needs Ω(n2)\Omega(n^2) 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 1+ε1+\varepsilon 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 nn over a constant alphabet, edit distance ED(x,y)\mathrm{ED}(x,y) is the minimum number of insertions, deletions and substitutions turning xx into yy. Exact computation takes O(n2)O(n^2) time and cannot be done in O(n2−ε)O(n^{2-\varepsilon}) unless SETH fails (Backurs–Indyk 2015). Problem: for every constant ε>0\varepsilon>0, decide whether there exist δ=δ(ε)>0\delta=\delta(\varepsilon)>0 and a (randomized) algorithm that outputs a (1+ε)(1+\varepsilon)-multiplicative approximation to ED(x,y)\mathrm{ED}(x,y) in time O(n2−δ)O(n^{2-\delta}) (a truly subquadratic, polynomially faster than n2n^2 running time), or prove that no such algorithm exists under a standard hypothesis.

Words on this page (11)
Words on this page
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)
New to this? Read first

Built from

earlier problems → this one

The 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.

  1. Start with
  2. Step 2
  3. Step 3
  4. Then
    • Edit distance: a (1+ε)-approximation in truly subquadratic time n2−δThis problem

Path to understanding

foundations → problem

The research entries this problem rests on, in the order to read them. Each links to its explainer.

  1. Start with
  2. Step 2
  3. Step 3
  4. Step 4
  5. 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 review

Only 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

Theory
90%
New mathematical or conceptual ideas
Engineering
0%
Building instruments, chips, systems, software, formal proofs
Compute
10%
Raw computation, search, simulation
Empirical
0%
Observation, experiment, data collection

An algorithmic idea (or a new fine-grained hardness reduction) is needed; implementation would follow later.

Connected problems

Progress

  1. Oct 1, 2026
    Factor-3 approximation in Õ(N^{11/6}) (preprint)

    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.

    source
  2. Mar 31, 2026
    (1+ε)-approximation in n²/2^{log^{Ω(1)} n} time

    Mao and Rubinstein: approximation schemes for edit distance and LCS (STOC 2026).

    source
  3. May 15, 2020
    Constant factor in near-linear time

    Andoni and Nosatzki: a constant-factor approximation in n^{1+ε} time.

    source
  4. Oct 8, 2018
    Constant factor in truly subquadratic time

    Chakraborty, Das, Goldenberg, Koucký and Saks break the quadratic barrier for constant-factor approximation (arXiv month; day approximate).

    source
  5. Dec 1, 2014
    Exact edit distance is SETH-hard

    Backurs and Indyk rule out O(n^{2−δ}) exact algorithms under SETH (arXiv month; day approximate).

    source