Lune

Abstract

Computing the edit distance of two strings is one of the most basic problems in computer science and combinatorial optimization. Tree edit distance is a natural generalization of edit distance in which the task is to compute a measure of dissimilarity between two (unweighted) rooted trees with node labels. Perhaps the most notable recent application of tree edit distance is in NoSQL big databases, such as MongoDB, where each row of the database is a JSON document represented as a labeled rooted tree and finding dissimilarity between two rows is a basic operation. Until recently, the fastest algorithm for tree edit distance ran in cubic time (Demaine, Mozes, Rossman, Weimann; TALG’10); however, Mao (FOCS’21) broke the cubic barrier for the tree edit distance problem using fast matrix multiplication.Given a parameter k as an upper bound on the distance, an O(n+k2)\mathcal{O}(n+k^{2})-time algorithm for edit distance has been known since the 1980s due to works of Myers (Algorithmica’86) and Landau and Vishkin (JCSS’88). The existence of an O~(n+poly(k))\tilde{\mathcal{O}}(n+poly(k))-time algorithm for tree edit distance has been posed as open question, e.g., by Akmal and Jin (ICALP’21), who give a stateof-the-art O(nk2)O(nk^{2})-time algorithm. In this paper, we answer this question positively.

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.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Bounded Edit Distance: Optimal Static and Dynamic Algorithms for Small Integer Weights cites Weighted Edit Distance Computation: Strings, Trees, and Dyck
  • Bounded Edit Distance: Optimal Static and Dynamic Algorithms for Small Integer Weights cites Does preprocessing help in fast sequence comparisons?
  • Bounded Edit Distance: Optimal Static and Dynamic Algorithms for Small Integer Weights cites Optimal Algorithms for Bounded Weighted Edit Distance
  • 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 Breaking the Cubic Barrier for (Unweighted) Tree Edit Distance
  • Weighted Edit Distance Computation: Strings, Trees, and Dyck cites Does preprocessing help in fast sequence comparisons?
  • 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
  • Edit Distance in Near-Linear Time: it's a Constant Factor cites Does preprocessing help in fast sequence comparisons?
  • Breaking the Cubic Barrier for (Unweighted) Tree Edit Distance cites Constant factor approximations to edit distance on far input pairs in nearly linear time
  • Breaking the Cubic Barrier for (Unweighted) 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 Bounded Edit Distance: Optimal Static and Dynamic Algorithms for Small Integer Weights
  • 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 Breaking the Cubic Barrier for (Unweighted) Tree Edit Distance
  • Faster Weighted and Unweighted Tree Edit Distance and APSP Equivalence cites Optimal Algorithms for Bounded Weighted Edit Distance
  • Does preprocessing help in fast sequence comparisons? cites Constant factor approximations to edit distance on far input pairs in nearly linear time
  • X-TED: Massive Parallelization of Tree Edit Distance cites Breaking the Cubic Barrier for (Unweighted) Tree Edit Distance
  • Optimal Algorithms for Bounded Weighted Edit Distance cites Constant factor approximations to edit distance on far input pairs in nearly linear time
  • Optimal Algorithms for Bounded Weighted Edit Distance cites Weighted Edit Distance Computation: Strings, Trees, and Dyck
  • Optimal Algorithms for Bounded Weighted Edit Distance cites Small-space and streaming pattern matching with k edits
  • Optimal Algorithms for Bounded Weighted Edit Distance cites Does preprocessing help in fast sequence comparisons?
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. Weighted Edit Distance Computation: Strings, Trees, and DyckDebarati Das, Jacob Gilbert, MohammadTaghi Hajiaghayi, Tomasz Kociumaka et al.STOC 2023 · 4 citations
  2. Faster Weighted and Unweighted Tree Edit Distance and APSP EquivalenceJakob Nogler, Adam Polak, Barna Saha, Virginia Vassilevska Williams et al.STOC 2025 · 4 citations
  3. Optimal Algorithms for Bounded Weighted Edit DistanceAlejandro Cassis, Tomasz Kociumaka, Philip WellnitzFOCS 2023 · 4 citations
  4. X-TED: Massive Parallelization of Tree Edit DistanceDayi Fan, Rubao Lee, Xiaodong ZhangVLDB 2024 · 2 citations
  5. Bounded Edit Distance: Optimal Static and Dynamic Algorithms for Small Integer WeightsEgor Gorbachev, Tomasz KociumakaSTOC 2025 · 1 citation

Builds on8

  1. Edit Distance in Near-Linear Time: it's a Constant FactorAlexandr Andoni, Negev Shekel NosatzkiFOCS 2020 · 28 citations
  2. Does preprocessing help in fast sequence comparisons?Elazar Goldenberg, Aviad Rubinstein, Barna SahaSTOC 2020 · 15 citations
  3. Small-space and streaming pattern matching with kk editsTomasz Kociumaka, Ely Porat, Tatiana StarikovskayaFOCS 2021 · 13 citations
  4. Breaking the Cubic Barrier for (Unweighted) Tree Edit DistanceXiao MaoFOCS 2021 · 7 citations
  5. Constant factor approximations to edit distance on far input pairs in nearly linear timeMichal Koucký, Michael E. SaksSTOC 2020 · 5 citations

Related papers

  1. 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
  2. Approximating Edit Distance in the Fully Dynamic ModelTomasz Kociumaka, Anish Mukherjee, Barna SahaFOCS 2023 · 1 citation
  3. JEDI: These aren't the JSON documents you're looking for?Thomas Hütter, Nikolaus Augsten, Christoph M. Kirsch, Michael J. Carey et al.SIGMOD 2022 · 14 citations
  4. UltraTWD: Optimizing Ultrametric Trees for Tree-Wasserstein DistanceFangchen Yu, Yanzhen Chen, Jiaxing Wei, Jianfeng Mao et al.ICML 2025
  5. Faster Sublinear-Time Edit DistanceKarl Bringmann, Alejandro Cassis, Nick Fischer, Tomasz KociumakaSODA 2024 · 3 citations
Dusk over the sea between two cliffs drawn in fine vertical lines