Exact edit-distance complexity

Still openEvidence checked

Subjects: Algorithms and data structures · Computational complexity

Collections: Limits of computation

Reading depth

The problem

Change “cat” into “cut” by replacing a with u. That uses one edit, and zero edits cannot work because the strings differ. In this problem, inserting one character, deleting one character or replacing one character each costs one; the answer is the minimum cost over all ways to transform one string into the other.

Can the exact answer always be computed with a fixed improvement in the exponent over quadratic time, for arbitrary strings over a fixed finite alphabet? The improvement must persist as the total length of the two strings grows.[1]

Scope

Unit-cost insertions, deletions and substitutions on arbitrary strings over a fixed finite alphabet, with n their total length. Standard RAM computation; approximate answers are a different target.

What remains open

Fast approximations do not return the exact answer; a general exponent improvement remains unknown.[2]

Why it matters

Insertions and deletions shift how the remaining characters line up, so comparing only the characters currently opposite each other can miss the cheapest transformation. The exact minimum asks an algorithm to resolve competing alignments. This gives sequence comparison a structure beyond counting mismatches, and makes its running time a concrete question about how that structure can be used.[1] [2]

Definitions

3 terms
truly subquadratic

Time bounded by O(n2−ε)O(n^{2-\varepsilon}) for a positive constant ε\varepsilon that does not shrink with input length. Dividing quadratic time by a logarithm is insufficient for this requirement.[1] [2]

SETH

The Strong Exponential Time Hypothesis: as the allowed clause width grows, Boolean satisfiability cannot always be solved with one fixed positive saving from the exhaustive-search exponent in the number of variables. It is a hypothesis, not a proved lower bound.[1]

Dynamic programming

Combining optimal answers for smaller subproblems and reusing them. For edit distance, the standard subproblems are pairs of string prefixes, joined by insertion, deletion and match/substitution steps.[1] [2]

Sources

  1. Edit Distance Cannot Be Computed in Strongly Subquadratic Time (unless SETH is false) Arturs Backurs and Piotr Indyk · 2014-12-01
    Notes on Edit Distance Cannot Be Computed in Strongly Subquadratic Time (unless SETH is false)

    Primary manuscript defines unit-cost distance and proves the SETH-conditional obstruction; journal version appeared in 2018.

  2. Approximation Schemes for Edit Distance and LCS in Quasi-Strongly Subquadratic Time Xiao Mao and Aviad Rubinstein · 2026-06-09
    Notes on Approximation Schemes for Edit Distance and LCS in Quasi-Strongly Subquadratic Time

    STOC 2026 paper distinguishes its approximation scheme from exact edit-distance computation.

  3. Metric Weighted Edit Distance: (3+ε)-Approximation in Õε(N^1.6) Time Debarati Das, Evangelos Kipouridis and Tomasz Kociumaka · 2026-09-17
    Notes on Metric Weighted Edit Distance: (3+ε)-Approximation in Õε(N^1.6) Time

    Preprint concerns a randomized approximation for metric-weighted costs, not the exact target.

Related problems

Suggest a correction