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

编辑距离不能在强次二次时间内计算(除非SETH为false)

Edit Distance Cannot Be Computed in Strongly Subquadratic Time (unless SETH is false)

Arturs Backurs, Piotr Indyk

摘要:

编辑距离(也称为两个字符串之间的Levenshtein距离)被定义为将一个字符串转换成另一个字符串所需的符号的插入、删除或替换的最小数目。计算两个字符串之间的编辑距离的问题是一个经典的计算任务,具有基于动态规划的众所周知的算法。不幸的是,所有已知的算法,这个问题的运行在近二次时间。在本文中,我们提供的证据表明,近二次运行时间界已知的问题计算编辑距离可能是紧的。具体地说,我们表明,如果编辑距离可以计算时间$O(n^{2-δ})$为一些常数$δ>0$,那么可满足的合取范式公式与$N$变量和$M$条款可以解决时间$M^{O(1)} 2^{(1-ε)N}$为一个常数$ε>0$。后一个结果将违反强指数时间假设,该假设假定这样的算法不存在。

英文摘要:

The edit distance (a.k.a. the Levenshtein distance) between two strings is defined as the minimum number of insertions, deletions or substitutions of symbols needed to transform one string into another. The problem of computing the edit distance between two strings is a classical computational task, with a well-known algorithm based on dynamic programming. Unfortunately, all known algorithms for this problem run in nearly quadratic time. In this paper we provide evidence that the near-quadratic running time bounds known for the problem of computing edit distance might be tight. Specifically, we show that, if the edit distance can be computed in time $O(n^{2-δ})$ for some constant $δ>0$, then the satisfiability of conjunctive normal form formulas with $N$ variables and $M$ clauses can be solved in time $M^{O(1)} 2^{(1-ε)N}$ for a constant $ε>0$. The latter result would violate the Strong Exponential Time Hypothesis, which postulates that such algorithms do not exist.

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

↑