Faster Weighted and Unweighted Tree Edit Distance and APSP Equivalence
Jakob Nogler, Adam Polak, Barna Saha, Virginia Vassilevska Williams,, Yinzhan Xu, Christopher Ye

TL;DR
This paper establishes the fine-grained equivalence between tree edit distance (TED) and APSP, introduces a subcubic algorithm for TED, and improves the running time for unweighted TED using advanced matrix multiplication techniques.
Contribution
We prove TED is fine-grained equivalent to APSP, provide the first subcubic TED algorithm, and optimize the unweighted TED algorithm to match the best known matrix multiplication bounds.
Findings
TED is fine-grained equivalent to APSP.
First subcubic algorithm for TED with $n^3/2^{ ext{Omega}( oot ext{log} n)}$ time.
Unweighted TED algorithm improved to $ ilde{O}(n^{(3+ ext{omega})/2})$ time.
Abstract
The tree edit distance (TED) between two rooted ordered trees with 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 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,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAlgorithms and Data Compression · Natural Language Processing Techniques · Network Packet Processing and Optimization
