Edit Distance in Near-Linear Time: it's a Constant Factor

preprint2022arXivOpen access

Abstract

We present an algorithm for approximating the edit distance between two strings of length nn in time n1+εn^{1+\varepsilon} up to a constant factor, for any ε>0\varepsilon>0. Our result completes a research direction set forth in the recent breakthrough paper [Chakraborty-Das-Goldenberg-Koucky-Saks, FOCS'18], which showed the first constant-factor approximation algorithm with a (strongly) sub-quadratic running time. The recent results of [Koucky-Saks, STOC'20] and [Brakensiek-Rubinstein, STOC'20] have shown near-linear time algorithms that obtain an additive approximation, near-linear in nn (equivalently, constant-factor approximation when the edit distance value is close to nn). In contrast, our algorithm obtains a constant-factor approximation in near-linear time for any input strings. In contrast to prior algorithms, which are mostly recursing over smaller substrings, our algorithm gradually smoothes out the local contribution to the edit distance over progressively larger substrings. To accomplish this, we iteratively construct a distance oracle data structure for the metric of edit distance on all substrings of input strings, of length niεn^{i\varepsilon} for i=0,1,…,1/εi=0,1,\ldots,1/\varepsilon. The distance oracle approximates the edit distance over these substrings in a certain average sense, just enough to estimate the overall edit distance.

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.