Skip to content
DARC
■ Change #130 · wiki.edited

Edit distance: a (1+ε)-approximation in truly subquadratic time n^(2−δ): Normalize Markdown to canonical form

by DARC wiki2026-10-22 20:31:14 UTCOpen the page →
body
− Given two strings of length $n$ over a constant alphabet, edit distance $\mathrm{ED}(x,y)$ is the minimum number of insertions, deletions and substitutions turning $x$ into $y$. Exact computation takes $O(n^2)$ time and cannot be done in $O(n^{2-\varepsilon})$ unless SETH fails (Backurs–Indyk 2015). **Problem:** for every constant $\varepsilon>0$, decide whether there exist $\delta=\delta(\varepsilon)>0$ and a (randomized) algorithm that outputs a $(1+\varepsilon)$-multiplicative approximation to $\mathrm{ED}(x,y)$ in time $O(n^{2-\delta})$ (a *truly* subquadratic, polynomially faster than $n^2$ running time), or prove that no such algorithm exists under a standard hypothesis.
+ Given two strings of length $n$ over a constant alphabet, edit distance $\mathrm{ED}(x,y)$ is the minimum number of insertions, deletions and substitutions turning $x$ into $y$. Exact computation takes $O(n^2)$ time and cannot be done in $O(n^{2-\varepsilon})$ unless SETH fails (Backurs–Indyk 2015). **Problem:** for every constant $\varepsilon>0$, decide whether there exist $\delta=\delta(\varepsilon)>0$ and a (randomized) algorithm that outputs a $(1+\varepsilon)$-multiplicative approximation to $\mathrm{ED}(x,y)$ in time $O(n^{2-\delta})$ (a _truly_ subquadratic, polynomially faster than $n^2$ running time), or prove that no such algorithm exists under a standard hypothesis.
stateOfArt
− 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.
+ 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.
explainer.student
**Definition.** For strings $x,y$ of length $n$ over a constant alphabet, the edit distance $\mathrm{ED}(x,y)$ is the minimum number of insertions, deletions and substitutions turning $x$ into $y$. Exact computation takes $O(n^2)$ time by dynamic programming, and cannot be done in $O(n^{2-\varepsilon})$ unless the Strong Exponential Time Hypothesis fails (Backurs and Indyk, 2015).
− **The problem.** For every constant $\varepsilon>0$, decide whether there exists $\delta=\delta(\varepsilon)>0$ and a (randomised) algorithm that outputs a $(1+\varepsilon)$-multiplicative approximation to $\mathrm{ED}(x,y)$ in time $O(n^{2-\delta})$: a *truly* subquadratic approximation scheme, polynomially faster than $n^2$.
+ **The problem.** For every constant $\varepsilon>0$, decide whether there exists $\delta=\delta(\varepsilon)>0$ and a (randomised) algorithm that outputs a $(1+\varepsilon)$-multiplicative approximation to $\mathrm{ED}(x,y)$ in time $O(n^{2-\delta})$: a _truly_ subquadratic approximation scheme, polynomially faster than $n^2$.
**What is known.**
− - *Constant-factor approximation* in truly subquadratic time: Chakraborty, Das, Goldenberg, Koucký and Saks (FOCS 2018) in $\tilde O(n^{2-2/7})$. In near-linear time $n^{1+\varepsilon}$ with a constant depending on $\varepsilon$: Andoni and Nosatzki (FOCS 2020). Before that, a $(\log n)^{O(1/\varepsilon)}$ factor in $n^{1+\varepsilon}$ time (Andoni, Krauthgamer, Onak 2010) and the large-distance case (Brakensiek and Rubinstein).
− - *Small constants:* $(3+\varepsilon)$-approximations run in truly subquadratic time (Andoni 2018; Goldenberg, Rubinstein and Saha 2020, about $n^{1.6}$). An unrefereed October 2026 preprint by Gorbachev achieves a factor of exactly 3 (no $+\varepsilon$) in about $n^{11/6}$ time, slower than the $n^{1.6}$ of the $(3+\varepsilon)$ methods. He states that a $(3-\delta)$-approximation in truly subquadratic time would need new ideas, and that $(1+\varepsilon)$ in truly subquadratic time is open.
− - *Barely subquadratic for $(1+\varepsilon)$:* Mao and Rubinstein (accepted to STOC 2026) give a randomised $(1+\varepsilon)$-approximation in time $n^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+\varepsilon)$-approximation in $O(n)$ time. Gorbachev also proves the metric assumption is necessary: for non-metric weights, any approximation needs $\Omega(n^2)$ oracle queries.
+ - _Constant-factor approximation_ in truly subquadratic time: Chakraborty, Das, Goldenberg, Koucký and Saks (FOCS 2018) in $\tilde O(n^{2-2/7})$. In near-linear time $n^{1+\varepsilon}$ with a constant depending on $\varepsilon$: Andoni and Nosatzki (FOCS 2020). Before that, a $(\log n)^{O(1/\varepsilon)}$ factor in $n^{1+\varepsilon}$ time (Andoni, Krauthgamer, Onak 2010) and the large-distance case (Brakensiek and Rubinstein).
+ - _Small constants:_ $(3+\varepsilon)$-approximations run in truly subquadratic time (Andoni 2018; Goldenberg, Rubinstein and Saha 2020, about $n^{1.6}$). An unrefereed October 2026 preprint by Gorbachev achieves a factor of exactly 3 (no $+\varepsilon$) in about $n^{11/6}$ time, slower than the $n^{1.6}$ of the $(3+\varepsilon)$ methods. He states that a $(3-\delta)$-approximation in truly subquadratic time would need new ideas, and that $(1+\varepsilon)$ in truly subquadratic time is open.
+ - _Barely subquadratic for $(1+\varepsilon)$:_ Mao and Rubinstein (accepted to STOC 2026) give a randomised $(1+\varepsilon)$-approximation in time $n^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+\varepsilon)$-approximation in $O(n)$ time. Gorbachev also proves the metric assumption is necessary: for non-metric weights, any approximation needs $\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+\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.
hash cf289f3e6749a9174e18e1d32e1870e25e2c481adfe50526e77deafae485fbf9
previous 57e218e641712d79b697097d2582967d4415a3d4f60dba7302000edca78acb0f