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

有界树编辑距离的快速算法

Faster Algorithms for Bounded Tree Edit Distance

Shyan Akmal, Ce Jin

摘要:

树编辑距离是一个研究得很好的度量具有节点标签的根树之间的相异性的方法。它可以在$O(n^3)$时间内计算[Demaine,Mozes,Rossman和Weimann,ICALP 2007],细粒度硬度结果表明,除非APSP猜想是假的,否则这个问题的加权版本不能在真正的亚立方时间内解决[Bringmann,Gawrychowski,Mozes和Weimann,SODA 2018]。我们考虑树编辑距离的未加权版本,其中每个插入,删除或重新标记操作都有单位成本。给定参数$k$作为距离的上限,该问题的先前最快算法在$O(nk^3)$时间内运行[Touzet,CPM 2005],这改进了$k\ll n^{2/3}$的时间算法。在本文中,我们给出了一个更快的算法$O(nk^2 \log n)$的时间,改善了以前的结果几乎整个范围的$\log n \ll k\ll n/\sqrt{\log n}$。

英文摘要:

Tree edit distance is a well-studied measure of dissimilarity between rooted trees with node labels. It can be computed in $O(n^3)$ time [Demaine, Mozes, Rossman, and Weimann, ICALP 2007], and fine-grained hardness results suggest that the weighted version of this problem cannot be solved in truly subcubic time unless the APSP conjecture is false [Bringmann, Gawrychowski, Mozes, and Weimann, SODA 2018]. We consider the unweighted version of tree edit distance, where every insertion, deletion, or relabeling operation has unit cost. Given a parameter $k$ as an upper bound on the distance, the previous fastest algorithm for this problem runs in $O(nk^3)$ time [Touzet, CPM 2005], which improves upon the cubic-time algorithm for $k\ll n^{2/3}$. In this paper, we give a faster algorithm taking $O(nk^2 \log n)$ time, improving both of the previous results for almost the full range of $\log n \ll k\ll n/\sqrt{\log n}$.

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

↑