English

Faster Algorithms for Bounded Tree Edit Distance

Data Structures and Algorithms 2021-06-11 v2

Abstract

Tree edit distance is a well-studied measure of dissimilarity between rooted trees with node labels. It can be computed in O(n3)O(n^3) time [Demaine, Mozes, Rossman, and Weimann, ICALP 2007], and fine-grained hardness results suggest that the weighted version of this problem cannot be solved in truly subcubic time unless the APSP conjecture is false [Bringmann, Gawrychowski, Mozes, and Weimann, SODA 2018]. We consider the unweighted version of tree edit distance, where every insertion, deletion, or relabeling operation has unit cost. Given a parameter kk as an upper bound on the distance, the previous fastest algorithm for this problem runs in O(nk3)O(nk^3) time [Touzet, CPM 2005], which improves upon the cubic-time algorithm for kn2/3k\ll n^{2/3}. In this paper, we give a faster algorithm taking O(nk2logn)O(nk^2 \log n) time, improving both of the previous results for almost the full range of lognkn/logn\log n \ll k\ll n/\sqrt{\log n}.

Keywords

Cite

@article{arxiv.2105.02428,
  title  = {Faster Algorithms for Bounded Tree Edit Distance},
  author = {Shyan Akmal and Ce Jin},
  journal= {arXiv preprint arXiv:2105.02428},
  year   = {2021}
}

Comments

To appear in ICALP 2021. Updated funding information and references