English

Edit Distance Cannot Be Computed in Strongly Subquadratic Time (unless SETH is false)

Computational Complexity 2017-08-17 v4 Data Structures and Algorithms

Abstract

The edit distance (a.k.a. the Levenshtein distance) between two strings is defined as the minimum number of insertions, deletions or substitutions of symbols needed to transform one string into another. The problem of computing the edit distance between two strings is a classical computational task, with a well-known algorithm based on dynamic programming. Unfortunately, all known algorithms for this problem run in nearly quadratic time. In this paper we provide evidence that the near-quadratic running time bounds known for the problem of computing edit distance might be tight. Specifically, we show that, if the edit distance can be computed in time O(n2δ)O(n^{2-\delta}) for some constant δ>0\delta>0, then the satisfiability of conjunctive normal form formulas with NN variables and MM clauses can be solved in time MO(1)2(1ϵ)NM^{O(1)} 2^{(1-\epsilon)N} for a constant ϵ>0\epsilon>0. The latter result would violate the Strong Exponential Time Hypothesis, which postulates that such algorithms do not exist.

Keywords

Cite

@article{arxiv.1412.0348,
  title  = {Edit Distance Cannot Be Computed in Strongly Subquadratic Time (unless SETH is false)},
  author = {Arturs Backurs and Piotr Indyk},
  journal= {arXiv preprint arXiv:1412.0348},
  year   = {2017}
}

Comments

STOC'15

R2 v1 2026-06-22T07:16:28.202Z