Breaking the Cubic Barrier for (Unweighted) Tree Edit Distance

06/03/2021
by   Xiao Mao, et al.
0

The (unweighted) tree edit distance problem for n node trees asks to compute a measure of dissimilarity between two rooted trees with node labels. The current best algorithm from more than a decade ago runs in O(n ^ 3) time [Demaine, Mozes, Rossman, and Weimann, ICALP 2007]. The same paper also showed that O(n ^ 3) is the best possible running time for any algorithm using the so-called decomposition strategy, which underlies almost all the known algorithms for this problem. These algorithms would also work for the weighted tree edit distance problem, which cannot be solved in truly sub-cubic time under the APSP conjecture [Bringmann, Gawrychowski, Mozes, and Weimann, SODA 2018]. In this paper, we break the cubic barrier by showing an O(n ^ 2.9546) time algorithm for the unweighted tree edit distance problem. We consider an equivalent maximization problem and use a dynamic programming scheme involving matrices with many special properties. By using a decomposition scheme as well as several combinatorial techniques, we reduce tree edit distance to the max-plus product of bounded-difference matrices, which can be solved in truly sub-cubic time [Bringmann, Grandoni, Saha, and Vassilevska Williams, FOCS 2016].

READ FULL TEXT

page 1

page 2

page 3

page 4

research
09/15/2022

Õ(n+poly(k))-time Algorithm for Bounded Tree Edit Distance

Computing the edit distance of two strings is one of the most basic prob...
research
05/06/2021

Faster Algorithms for Bounded Tree Edit Distance

Tree edit distance is a well-studied measure of dissimilarity between ro...
research
04/26/2018

Edit Distance between Unrooted Trees in Cubic Time

Edit distance between trees is a natural generalization of the classical...
research
02/09/2018

Neural Dynamic Programming for Musical Self Similarity

We present a neural sequence model designed specifically for symbolic mu...
research
05/11/2021

Tree Edit Distance with Variables. Measuring the Similarity between Mathematical Formulas

In this article, we propose tree edit distance with variables, which is ...
research
12/02/2021

Gomory-Hu Trees in Quadratic Time

Gomory-Hu tree [Gomory and Hu, 1961] is a succinct representation of pai...
research
08/04/2022

Improved Bounds for Rectangular Monotone Min-Plus Product

In a recent breakthrough paper, Chi et al. (STOC'22) introduce an Õ(n^3 ...

Please sign up or login with your details

Forgot password? Click here to reset