Edit Distance between Unrooted Trees in Cubic Time
Bart{\l}omiej Dudek, Pawe{\l} Gawrychowski

TL;DR
This paper presents an algorithm that computes the edit distance between unrooted trees in cubic time, matching the complexity of the rooted case and establishing that unrooted trees are not inherently more difficult.
Contribution
The authors develop an $ ext{O}(n^3)$ time algorithm for unrooted tree edit distance, extending previous rooted tree methods and proving optimality under certain computational assumptions.
Findings
Unrooted tree edit distance can be computed in $ ext{O}(n^3)$ time.
The algorithm's complexity matches the rooted case, showing unrooted trees are not more complex.
Lower bounds indicate no significantly faster algorithm is likely to exist.
Abstract
Edit distance between trees is a natural generalization of the classical edit distance between strings, in which the allowed elementary operations are contraction, uncontraction and relabeling of an edge. Demaine et al. [ACM Trans. on Algorithms, 6(1), 2009] showed how to compute the edit distance between rooted trees on nodes in time. However, generalizing their method to unrooted trees seems quite problematic, and the most efficient known solution remains to be the previous time algorithm by Klein [ESA 1998]. Given the lack of progress on improving this complexity, it might appear that unrooted trees are simply more difficult than rooted trees. We show that this is, in fact, not the case, and edit distance between unrooted trees on nodes can be computed in time. A significantly faster solution is unlikely to…
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.
