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

全动态模型中的编辑距离近似

Approximating Edit Distance in the Fully Dynamic Model

Tomasz Kociumaka, Anish Mukherjee, Barna Saha

AI总结:

针对字符可动态插入、删除和替换的动态编辑距离问题,本文借助 precision sampling tree 框架,提出近似比与摊还期望更新时间均为 $n^{o(1)}$ 的动态近似算法。

摘要:

编辑距离是序列相似性的一个基本度量,定义为将一个字符串转换为另一个字符串所需的字符插入、删除和替换的最少次数。给定两条长度至多为 $n$ 的字符串,简单的动态规划可在 $O(n^2)$ 时间内精确计算其编辑距离;在强指数时间假设(SETH)下,这也是最佳可能结果(相差至多子多项式因子)。过去几十年间,编辑距离近似取得了巨大进展,其运行时间已以近似为代价降至次二次、近线性甚至次线性。本文研究动态编辑距离问题,其中字符串会随时间发生字符替换、插入或删除而动态变化。每次变化都可能发生在两条字符串中任意一条的任意位置。目标是在此类动态字符串上维护(精确或近似的)编辑距离,同时最小化更新时间。精确编辑距离可在每次更新 $\tilde{O}(n)$ 时间内维护(Charalampopoulos、Kociumaka、Mozes;2020),在 SETH 下这同样是紧的。遗憾的是,尽管静态情形下的编辑距离近似取得了前所未有的进展,但关于动态编辑距离近似,所知却极少。利用现成工具,对于任意常数 $c\in[0,\frac16]$,可以在 $n^{0.5-c+o(1)}$ 更新时间内获得 $O(n^{c})$-近似。改进这一权衡仍是开放问题。本工作的贡献是一种动态 $n^{o(1)}$-近似算法,其摊还期望更新时间为 $n^{o(1)}$。换言之,我们将近似比与更新时间的乘积降至 $n^{o(1)}$。我们的解决方案利用了用于编辑距离近似的 precision sampling tree(精度采样树)这一精巧框架(Andoni、Krauthgamer、Onak;2010)。

英文摘要:

The edit distance is a fundamental measure of sequence similarity, defined as the minimum number of character insertions, deletions, and substitutions needed to transform one string into the other. Given two strings of length at most $n$, simple dynamic programming computes their edit distance exactly in $O(n^2)$ time, which is also the best possible (up to subpolynomial factors) assuming the Strong Exponential Time Hypothesis (SETH). The last few decades have seen tremendous progress in edit distance approximation, where the runtime has been brought down to subquadratic, near-linear, and even sublinear at the cost of approximation. In this paper, we study the dynamic edit distance problem, where the strings change dynamically as the characters are substituted, inserted, or deleted over time. Each change may happen at any location of either of the two strings. The goal is to maintain the (exact or approximate) edit distance of such dynamic strings while minimizing the update time. The exact edit distance can be maintained in $\tilde{O}(n)$ time per update (Charalampopoulos, Kociumaka, Mozes; 2020), which is again tight assuming SETH. Unfortunately, even with the unprecedented progress in edit distance approximation in the static setting, strikingly little is known regarding dynamic edit distance approximation. Utilizing the off-the-shelf tools, it is possible to achieve an $O(n^{c})$-approximation in $n^{0.5-c+o(1)}$ update time for any constant $c\in [0,\frac16]$. Improving upon this trade-off remains open. The contribution of this work is a dynamic $n^{o(1)}$-approximation algorithm with amortized expected update time of $n^{o(1)}$. In other words, we bring the approximation-ratio and update-time product down to $n^{o(1)}$. Our solution utilizes an elegant framework of precision sampling tree for edit distance approximation (Andoni, Krauthgamer, Onak; 2010).

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

↑