arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1910.00901cs.CCcs.DS
收藏

间隙编辑距离的次线性算法

Sublinear Algorithms for Gap Edit Distance

Elazar Goldenberg, Robert Krauthgamer, Barna Saha

摘要:

编辑距离是一种通过计算将一个字符串转换为另一个字符串所需的最小字符插入、删除和替换次数来量化两个字符串彼此相似程度的方法。一个简单的动态编程计算两个长度为$n$的字符串之间的编辑距离,时间为$O(n^2)$,而一个更复杂的算法在编辑距离为$t$时,时间为$O(n+t^2)$ [Landau,Myers和Schmidt,SICOMP 1998]。为了追求更快的运行时间,过去几十年来,人们对近似编辑距离进行了大量研究,包括近线性时间的多对数近似[Andoni,Krauthgamer和Onak,FOCS 2010],以及次二次时间的常数因子近似[Chakrabarty,Das,Goldenberg,Kouckelman和Saks,FOCS 2018]。我们研究了小编辑距离的次线性时间算法,由于其众多的应用而被广泛研究。我们的主要结果是一个算法,用于区分编辑距离是最多$t$或至少$t^2$(二次间隙问题)在时间$\tilde{O}(\frac{n}{t}+t^3)$。该时间界限对于$[ω(1), o(n^{1/3})]$中的所有$t$大致是次线性的,这在以前是未知的。先前最好的算法仅在$t=ω(n^{1/3})$的次线性时间内解决了该问题[Andoni和Onak,STOC 2009]。我们的算法是基于一种新的方法,自适应切换均匀采样和读取连续块的输入字符串。与此相反,所有以前的算法选择哪些坐标查询非自适应。此外,它可以扩展到解决时间上的$t$与$t^{2-ε}$间隙问题$\tilde{O}(\frac{n}{t^{1-ε}}+t^3)$。

英文摘要:

The edit distance is a way of quantifying how similar two strings are to one another by counting the minimum number of character insertions, deletions, and substitutions required to transform one string into the other. A simple dynamic programming computes the edit distance between two strings of length $n$ in $O(n^2)$ time, and a more sophisticated algorithm runs in time $O(n+t^2)$ when the edit distance is $t$ [Landau, Myers and Schmidt, SICOMP 1998]. In pursuit of obtaining faster running time, the last couple of decades have seen a flurry of research on approximating edit distance, including polylogarithmic approximation in near-linear time [Andoni, Krauthgamer and Onak, FOCS 2010], and a constant-factor approximation in subquadratic time [Chakrabarty, Das, Goldenberg, Koucký and Saks, FOCS 2018]. We study sublinear-time algorithms for small edit distance, which was investigated extensively because of its numerous applications. Our main result is an algorithm for distinguishing whether the edit distance is at most $t$ or at least $t^2$ (the quadratic gap problem) in time $\tilde{O}(\frac{n}{t}+t^3)$. This time bound is sublinear roughly for all $t$ in $[ω(1), o(n^{1/3})]$, which was not known before. The best previous algorithms solve this problem in sublinear time only for $t=ω(n^{1/3})$ [Andoni and Onak, STOC 2009]. Our algorithm is based on a new approach that adaptively switches between uniform sampling and reading contiguous blocks of the input strings. In contrast, all previous algorithms choose which coordinates to query non-adaptively. Moreover, it can be extended to solve the $t$ vs $t^{2-ε}$ gap problem in time $\tilde{O}(\frac{n}{t^{1-ε}}+t^3)$.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑