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

更快的亚线性时间编辑距离算法

Faster Sublinear-Time Edit Distance

Karl Bringmann, Alejandro Cassis, Nick Fischer, Tomasz Kociumaka

AI总结:

本文针对(k, k^{1+o(1)})-gap编辑距离问题提出改进的亚线性时间算法,将运行时间从O(n/k + k^{4+o(1)})优化至O(n/k + k^{2+o(1)}),在k≤n^{1/3}范围内实现几乎最优。

摘要:

我们研究近似计算两个字符串编辑距离这一基础问题。在大量研究最终催生了几乎线性时间的常数因子近似算法之后,近年来研究重点明显转向亚线性时间算法。在此背景下,该任务通常被形式化为 $(k, K)$-gap 编辑距离问题:判断两个字符串的编辑距离是至多 $k$ 还是大于 $K$。令人惊讶的是,在这一具有挑战性的设定下仍然可以计算有意义的近似值。然而,在几乎所有先前的工作中,真正亚线性的运行时间 $O(n^{1-\varepsilon})$(其中 $\varepsilon > 0$ 为常数)都以至少多项式级别的间隔 $K \ge k \cdot n^{Ω(\varepsilon)}$ 为代价。直到最近,[Bringmann, Cassis, Fischer, and Nakos; STOC'22] 突破了这一障碍,以 $O(n/k + k^{4+o(1)})$ 时间解决了亚多项式的 $(k, k^{1+o(1)})$-gap 编辑距离问题,当 $n^{Ω(1)} \le k \le n^{\frac14-Ω(1)}$ 时该时间是真正亚线性的。$n/k$ 项是不可避免的(即使对于汉明距离也是如此),但优化 $\mathrm{poly}(k)$ 项,以及更一般地,在更大的 $k$ 取值范围内以亚线性时间解决 $(k, k^{1+o(1)})$-gap 编辑距离问题,仍然是一项重要任务。在本文中,我们设计了一个改进算法,以亚线性时间 $O(n/k + k^{2+o(1)})$ 解决 $(k, k^{1+o(1)})$-gap 编辑距离问题,相比之前的 $O(n/k + k^{4+o(1)})$ 时间算法实现了显著的二次加速。值得注意的是,在 $k \leq n^{\frac13}$ 的范围内,我们的算法是无条件的几乎最优的(至多相差亚多项式因子),并且在 $k \leq n^{\frac12-o(1)}$ 时优于现有最佳结果。

英文摘要:

We study the fundamental problem of approximating the edit distance of two strings. After an extensive line of research led to the development of a constant-factor approximation algorithm in almost-linear time, recent years have witnessed a notable shift in focus towards sublinear-time algorithms. Here, the task is typically formalized as the $(k, K)$-gap edit distance problem: Distinguish whether the edit distance of two strings is at most $k$ or more than $K$. Surprisingly, it is still possible to compute meaningful approximations in this challenging regime. Nevertheless, in almost all previous work, truly sublinear running time of $O(n^{1-\varepsilon})$ (for a constant $\varepsilon > 0$) comes at the price of at least polynomial gap $K \ge k \cdot n^{Ω(\varepsilon)}$. Only recently, [Bringmann, Cassis, Fischer, and Nakos; STOC'22] broke through this barrier and solved the sub-polynomial $(k, k^{1+o(1)})$-gap edit distance problem in time $O(n/k + k^{4+o(1)})$, which is truly sublinear if $n^{Ω(1)} \le k \le n^{\frac14-Ω(1)}$.The $n/k$ term is inevitable (already for Hamming distance), but it remains an important task to optimize the $\mathrm{poly}(k)$ term and, in general, solve the $(k, k^{1+o(1)})$-gap edit distance problem in sublinear-time for larger values of $k$. In this work, we design an improved algorithm for the $(k, k^{1+o(1)})$-gap edit distance problem in sublinear time $O(n/k + k^{2+o(1)})$, yielding a significant quadratic speed-up over the previous $O(n/k + k^{4+o(1)})$-time algorithm. Notably, our algorithm is unconditionally almost-optimal (up to subpolynomial factors) in the regime where $k \leq n^{\frac13}$ and improves upon the state of the art for $k \leq n^{\frac12-o(1)}$.

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

↑