Breaking the Cubic Barrier for (Unweighted) Tree Edit Distance
Abstract
The (unweighted) tree edit distance problem fornode 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 intime [Demaine, Mozes, Rossman, and Weimann, ICALP 2007]. The same paper also showed thatis 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 antime 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].
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
7 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Constant-factor approximation of near-linear edit distance in near-linear time cites Constant factor approximations to edit distance on far input pairs in nearly linear time
- Constant factor approximations to edit distance on far input pairs in nearly linear time cites Constant-factor approximation of near-linear edit distance in near-linear time
- Weighted Edit Distance Computation: Strings, Trees, and Dyck cites Constant-factor approximation of near-linear edit distance in near-linear time
- Weighted Edit Distance Computation: Strings, Trees, and Dyck cites Constant factor approximations to edit distance on far input pairs in nearly linear time
- Weighted Edit Distance Computation: Strings, Trees, and Dyck cites Edit Distance in Near-Linear Time: it's a Constant Factor
- Weighted Edit Distance Computation: Strings, Trees, and Dyck cites Õ(n+poly(k))-time Algorithm for Bounded Tree Edit Distance
- Edit Distance in Near-Linear Time: it's a Constant Factor cites Constant-factor approximation of near-linear edit distance in near-linear time
- Edit Distance in Near-Linear Time: it's a Constant Factor cites Constant factor approximations to edit distance on far input pairs in nearly linear time
- Universe Reduction for APSP: Equivalence of Three Fine-Grained Hypotheses cites Truly Subcubic Min-Plus Product for Less Structured Matrices, with Applications
- Universe Reduction for APSP: Equivalence of Three Fine-Grained Hypotheses cites Faster Weighted and Unweighted Tree Edit Distance and APSP Equivalence
- Universe Reduction for APSP: Equivalence of Three Fine-Grained Hypotheses cites Faster min-plus product for monotone instances
- Õ(n+poly(k))-time Algorithm for Bounded Tree Edit Distance cites Constant-factor approximation of near-linear edit distance in near-linear time
- Õ(n+poly(k))-time Algorithm for Bounded Tree Edit Distance cites Constant factor approximations to edit distance on far input pairs in nearly linear time
- Õ(n+poly(k))-time Algorithm for Bounded Tree Edit Distance cites Edit Distance in Near-Linear Time: it's a Constant Factor
- Faster Weighted and Unweighted Tree Edit Distance and APSP Equivalence cites Truly Subcubic Min-Plus Product for Less Structured Matrices, with Applications
- Faster Weighted and Unweighted Tree Edit Distance and APSP Equivalence cites Weighted Edit Distance Computation: Strings, Trees, and Dyck
- Faster Weighted and Unweighted Tree Edit Distance and APSP Equivalence cites Õ(n+poly(k))-time Algorithm for Bounded Tree Edit Distance
- Faster Weighted and Unweighted Tree Edit Distance and APSP Equivalence cites Faster min-plus product for monotone instances
Cited by top-tier papers7
- Faster min-plus product for monotone instancesShucheng Chi, Ran Duan, Tianle Xie, Tianyi ZhangSTOC 2022 · 12 citations
- Õ(n+poly(k))-time Algorithm for Bounded Tree Edit DistanceDebarati Das, Jacob Gilbert, MohammadTaghi Hajiaghayi, Tomasz Kociumaka et al.FOCS 2022 · 5 citations
- Weighted Edit Distance Computation: Strings, Trees, and DyckDebarati Das, Jacob Gilbert, MohammadTaghi Hajiaghayi, Tomasz Kociumaka et al.STOC 2023 · 4 citations
- Faster Weighted and Unweighted Tree Edit Distance and APSP EquivalenceJakob Nogler, Adam Polak, Barna Saha, Virginia Vassilevska Williams et al.STOC 2025 · 4 citations
- Universe Reduction for APSP: Equivalence of Three Fine-Grained HypothesesNick FischerSTOC 2026 · 2 citations
Builds on4
- Edit Distance in Near-Linear Time: it's a Constant FactorAlexandr Andoni, Negev Shekel NosatzkiFOCS 2020 · 28 citations
- Truly Subcubic Min-Plus Product for Less Structured Matrices, with ApplicationsVirginia Vassilevska Williams, Yinzhan XuSODA 2020 · 19 citations
- Constant factor approximations to edit distance on far input pairs in nearly linear timeMichal Koucký, Michael E. SaksSTOC 2020 · 5 citations
- Constant-factor approximation of near-linear edit distance in near-linear timeJoshua Brakensiek, Aviad RubinsteinSTOC 2020 · 1 citation
Related papers
- Dynamic Dyck and Tree Edit Distance: Decompositions and Reductions to String Edit DistanceDebarati Das, Jacob Gilbert, MohammadTaghi Hajiaghayi, Tomasz Kociumaka et al.FOCS 2025 · 1 citation
- Approximating Edit Distance in the Fully Dynamic ModelTomasz Kociumaka, Anish Mukherjee, Barna SahaFOCS 2023 · 1 citation
- Optimal Algorithms for Bounded Weighted Edit DistanceAlejandro Cassis, Tomasz Kociumaka, Philip WellnitzFOCS 2023 · 4 citations
- Faster Sublinear-Time Edit DistanceKarl Bringmann, Alejandro Cassis, Nick Fischer, Tomasz KociumakaSODA 2024 · 3 citations
- Almost-optimal sublinear-time edit distance in the low distance regimeKarl Bringmann, Alejandro Cassis, Nick Fischer, Vasileios NakosSTOC 2022 · 4 citations
