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 a promise problem (k,kc)(k,k^c)-Gap Edit Distance, 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 and NO if ED(X,Y)>kcED(X,Y)> k^c. Recent years have witnessed significant interest in designing sublinear-time algorithms for Gap Edit Distance. We resolve the non-adaptive query complexity of Gap Edit Distance, improving over several previous results. Specifically, we design a non-adaptive algorithm with query complexity O~(nkcβˆ’0.5)\tilde{O}(\frac{n}{k^{c-0.5}}), and further prove that this bound is optimal up to polylogarithmic factors. Our algorithm also achieves optimal time complexity O~(nkcβˆ’0.5)\tilde{O}(\frac{n}{k^{c-0.5}}) whenever cβ‰₯1.5c\geq 1.5. For 1<c<1.51<c<1.5, the running time of our algorithm is O~(nk2cβˆ’1)\tilde{O}(\frac{n}{k^{2c-1}}). For 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

    Similar works

    Full text

    thumbnail-image

    Available Versions