Gap Edit Distance via Non-Adaptive Queries: Simple and Optimal

Abstract

We study the problem of approximating edit distance in sublinear time. This is formalized as the (k,kc)-Gap Edit Distance problem, where the input is a pair of strings X,Y and parameters k,c>1, and the goal is to return YES if ED(X,Y)≤ k, NO if ED(X,Y)> kc, and an arbitrary answer when k < ED(X,Y) kc. Recent years have witnessed significant interest in designing sublinear-time algorithms for Gap Edit Distance. In this work, we resolve the non-adaptive query complexity of Gap Edit Distance for the entire range of parameters, improving over a sequence of previous results. Specifically, we design a non-adaptive algorithm with query complexity O(n/kc-0.5), and we further prove that this bound is optimal up to polylogarithmic factors. Our algorithm also achieves optimal time complexity O(n/kc-0.5) whenever c≥ 1.5. For 1<c<1.5, the running time of our algorithm is O(n/k2c-1). In the restricted case of kc=(n), this matches a known result [Batu, Erg\"un, Kilian, Magen, Raskhodnikova, Rubinfeld, and Sami; STOC 2003], and in all other (nontrivial) cases, our running time is strictly better than all previous algorithms, including the adaptive ones. However, an independent work of Bringmann, Cassis, Fischer, and Nakos [STOC 2022] provides an adaptive algorithm that bypasses the non-adaptive lower bound, but only for small enough k and c.

0

Turn this paper into a lesson

ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…