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

更快的加权与无权树编辑距离及APSP等价性

Faster Weighted and Unweighted Tree Edit Distance and APSP Equivalence

Jakob Nogler, Adam Polak, Barna Saha, Virginia Vassilevska Williams, Yinzhan Xu, Christopher Ye

AI总结:

本文证明了树编辑距离(TED)与所有节点对最短路径(APSP)细粒度等价,借此首次实现次立方时间TED算法,并为无权TED给出了匹配最佳单调min-plus乘积复杂度的算法。

摘要:

两棵节点均从字母表 $Σ$ 标记、含 $n$ 个节点的有根有序树之间的树编辑距离(TED),是通过包含节点插入、删除和重标记的有效操作序列将一棵树转换为另一棵树的最小代价。树编辑距离是字符串编辑距离的著名推广,自 1970 年代起便被研究。多年的稳步改进已催生出 $O(n^3)$ 算法 [DMRW 2010]。细粒度复杂度揭示了 TED 的困难性,表明针对 TED 的真正次立方时间算法意味着存在针对所有节点对最短路径(APSP)的真正次立方时间算法 [BGMW 2020]。因此,在流行的 APSP 假设下,不可能存在针对 TED 的真正次立方时间算法。然而,不同于细粒度复杂度中许多基于 APSP 的条件硬度同时具备与 APSP 等价性的问题,TED 是否能归约到 APSP 一直未知。\n在本文中,我们解决了这一问题。我们不仅证明 TED 与 APSP 细粒度等价,而且我们的归约足够紧密,结合迄今最快的 APSP 算法 [Williams 2018],给出了首个运行时间为 $n^3/2^{Ω(\sqrt{\log{n}})}$ 的次立方时间 TED 算法。\n我们还考虑了每次编辑代价均为 1 的无权树编辑距离问题。对于无权 TED,由于 Mao [Mao 2022] 的研究已存在真正的次立方算法,随后 Dürr [Dürr 2023] 将其略微改进至 $O(n^{2.9148})$ 运行时间。其算法将有界单调 min-plus 乘积作为关键子程序,而该乘积的最佳运行时间为 $\tilde{O}(n^{\frac{3+ω}{2}})\leq O(n^{2.6857})$(其中 $ω$ 为快速矩阵乘法的指数)。在本工作中,我们填补了这一差距,给出了一种运行时间为 $\tilde{O}(n^{\frac{3+ω}{2}})$ 的无权 TED 算法。

英文摘要:

The tree edit distance (TED) 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 valid operations consisting of insertions, deletions and relabeling of nodes. The tree edit distance is a well-known generalization of string edit distance and has been studied since the 1970s. Years of steady improvements have led to an $O(n^3)$ algorithm [DMRW 2010]. Fine-grained complexity casts light onto the hardness of TED showing that a truly subcubic time algorithm for TED implies a truly subcubic time algorithm for All-Pairs Shortest Paths (APSP) [BGMW 2020]. Therefore, under the popular APSP hypothesis, a truly subcubic time algorithm for TED cannot exist. However, unlike many problems in fine-grained complexity for which conditional hardness based on APSP also comes with equivalence to APSP, whether TED can be reduced to APSP has remained unknown. In this paper, we resolve this. Not only we show that TED is fine-grained equivalent to APSP, our reduction is tight enough, so that combined with the fastest APSP algorithm to-date [Williams 2018] it gives the first ever subcubic time algorithm for TED running in $n^3/2^{Ω(\sqrt{\log{n}})}$ time. We also consider the unweighted tree edit distance problem in which the cost of each edit is one. For unweighted TED, a truly subcubic algorithm is known due to Mao [Mao 2022], later improved slightly by Dürr [Dürr 2023] to run in $O(n^{2.9148})$. Their algorithm uses bounded monotone min-plus product as a crucial subroutine, and the best running time for this product is $\tilde{O}(n^{\frac{3+ω}{2}})\leq O(n^{2.6857})$ (where $ω$ is the exponent of fast matrix multiplication). In this work, we close this gap and give an algorithm for unweighted TED that runs in $\tilde{O}(n^{\frac{3+ω}{2}})$ time.

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

↑