English

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

Data Structures and Algorithms 2022-10-04 v2

Abstract

We study the problem of approximating edit distance in sublinear time. This is formalized as the (k,kc)(k,k^c)-Gap Edit Distance problem, where the input is a pair of strings X,YX,Y and parameters k,c>1k,c>1, and the goal is to return YES if ED(X,Y)kED(X,Y)\leq k, NO if ED(X,Y)>kcED(X,Y)> k^c, and an arbitrary answer when k<ED(X,Y)kck < ED(X,Y) \le k^c. 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/kc0.5)\tilde{O}(n/k^{c-0.5}), and we further prove that this bound is optimal up to polylogarithmic factors. Our algorithm also achieves optimal time complexity O~(n/kc0.5)\tilde{O}(n/k^{c-0.5}) whenever c1.5c\geq 1.5. For 1<c<1.51<c<1.5, the running time of our algorithm is O~(n/k2c1)\tilde{O}(n/k^{2c-1}). In the restricted case of kc=Ω(n)k^c=\Omega(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 kk and cc.

Keywords

Cite

@article{arxiv.2111.12706,
  title  = {Gap Edit Distance via Non-Adaptive Queries: Simple and Optimal},
  author = {Elazar Goldenberg and Tomasz Kociumaka and Robert Krauthgamer and Barna Saha},
  journal= {arXiv preprint arXiv:2111.12706},
  year   = {2022}
}

Comments

Accepted to FOCS 2022

R2 v1 2026-06-24T07:51:04.117Z