arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1703.08940cs.DS
收藏

树编辑距离不能在强次立方时间内计算(除非APSP可以)

Tree Edit Distance Cannot be Computed in Strongly Subcubic Time (unless APSP can)

Karl Bringmann, Paweł Gawrychowski, Shay Mozes, Oren Weimann

摘要:

两个根有序树之间的编辑距离,其中$n$节点标记为字母表~ $Σ$,是通过删除和重新标记现有节点以及插入新节点组成的一系列基本操作将一棵树转换为另一棵树的最小成本。树编辑距离是字符串编辑距离的一个众所周知的推广。树编辑距离的已知最快算法在立方$O(n^3)$时间内运行,并且基于与字符串编辑距离类似的动态规划解决方案。在本文中,我们表明,一个真正的次立方$O(n^{3-\varepsilon})$时间算法树编辑距离是不可能的:对于$|Σ| = Ω(n)$,一个真正的次立方算法树编辑距离意味着一个真正的次立方算法的所有对最短路径问题。对于$|Σ| = O(1)$,树编辑距离的真正次立方算法意味着用于找到最大权重$k$ -团的$O(n^{k-\varepsilon})$算法。因此,虽然在上限方面,字符串编辑距离和树编辑距离是高度相关的,但在下限方面,字符串编辑距离表现出强指数时间假设的硬度[Backurs,Indyk STOC'15],而树编辑距离表现出所有对最短路径的硬度。我们的结果提供了一个匹配的条件下界的最后剩下的经典动态规划问题之一。

英文摘要:

The edit distance between two rooted ordered trees with $n$ nodes labeled from an alphabet~$Σ$ is the minimum cost of transforming one tree into the other by a sequence of elementary operations consisting of deleting and relabeling existing nodes, as well as inserting new nodes. Tree edit distance is a well known generalization of string edit distance. The fastest known algorithm for tree edit distance runs in cubic $O(n^3)$ time and is based on a similar dynamic programming solution as string edit distance. In this paper we show that a truly subcubic $O(n^{3-\varepsilon})$ time algorithm for tree edit distance is unlikely: For $|Σ| = Ω(n)$, a truly subcubic algorithm for tree edit distance implies a truly subcubic algorithm for the all pairs shortest paths problem. For $|Σ| = O(1)$, a truly subcubic algorithm for tree edit distance implies an $O(n^{k-\varepsilon})$ algorithm for finding a maximum weight $k$-clique. Thus, while in terms of upper bounds string edit distance and tree edit distance are highly related, in terms of lower bounds string edit distance exhibits the hardness of the strong exponential time hypothesis [Backurs, Indyk STOC'15] whereas tree edit distance exhibits the hardness of all pairs shortest paths. Our result provides a matching conditional lower bound for one of the last remaining classic dynamic programming problems.

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

↑