Arrow Research search
Back to FOCS

FOCS 2022

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

Conference Paper Accepted Paper Algorithms and Complexity · Theoretical Computer Science

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 $\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 $\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(nk^{2})$-time algorithm. In this paper, we answer this question positively.

Authors

Keywords

  • Computer science
  • Upper bound
  • Costs
  • Databases
  • Task analysis
  • Optimization
  • Edit Distance
  • Graph Edit Distance
  • Matrix Multiplication
  • Node Labels
  • Synchronization
  • Exponent
  • Running Time
  • Estimation Algorithm
  • Pair Of Nodes
  • Linear Time
  • Periodic Structure
  • Matched Pairs
  • Problem Instances
  • Substring
  • Optimal Alignment
  • Overview Of Techniques
  • Partial Match
  • Alignment Tree
  • Greedy Approach
  • Greedy Strategy
  • Range Query
  • Path Nodes
  • Pairs Of Trees
  • Number Of Edits
  • Tree Edit Distance

Context

Venue
IEEE Symposium on Foundations of Computer Science
Archive span
1975-2025
Indexed papers
3809
Paper id
58896057601910513
v2026.09.13