An Optimal Decomposition Algorithm for Tree Edit Distance

被引:96
|
作者
Demaine, Erik D. [1 ]
Mozes, Shay [2 ]
Rossman, Benjamin
Weimann, Oren
机构
[1] MIT, Comp Sci & Artificial Intelligence Lab, Cambridge, MA 02139 USA
[2] Brown Univ, Providence, RI 02912 USA
关键词
Decomposition strategy; dynamic programming; edit distance; ordered trees; tree edit distance;
D O I
10.1145/1644015.1644017
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
The edit distance between two ordered rooted trees with vertex labels is the minimum cost of transforming one tree into the other by a sequence of elementary operations consisting of deleting and relabeling existing nodes, as well as inserting new nodes. In this article, we present a worst-case O(n(3))-time algorithm for the problem when the two trees have size n, improving the previous best O(n(3) log n)-time algorithm. Our result requires a novel adaptive strategy for deciding how a dynamic program divides into subproblems, together with a deeper understanding of the previous algorithms for the problem. We prove the optimality of our algorithm among the family of decomposition strategy algorithms-which also includes the previous fastest algorithms-by tightening the known lower bound of Omega(n(2) log(2) n) to Omega(n(3)), matching our algorithm's running time. Furthermore, we obtain matching upper and lower bounds for decomposition strategy algorithms of Theta(nm(2)(1+ log n/m) when the two trees have sizes m and n and m < n.
引用
收藏
页数:19
相关论文
共 50 条
  • [1] An optimal decomposition algorithm for tree edit distance
    Demaine, Erik D.
    Mozes, Shay
    Rossman, Benjamin
    Weimann, Oren
    AUTOMATA, LANGUAGES AND PROGRAMMING, PROCEEDINGS, 2007, 4596 : 146 - +
  • [2] Decomposition algorithms for the tree edit distance problem
    Dulucq, Serge
    Touzet, Helene
    JOURNAL OF DISCRETE ALGORITHMS, 2005, 3 (2-4) : 448 - 471
  • [3] RTED: A Robust Algorithm for the Tree Edit Distance
    Pawlik, Mateusz
    Augsten, Nikolaus
    PROCEEDINGS OF THE VLDB ENDOWMENT, 2011, 5 (04): : 334 - 345
  • [4] An A*-algorithm for the Unordered Tree Edit Distance with Custom Costs
    Paassen, Benjamin
    SIMILARITY SEARCH AND APPLICATIONS, SISAP 2021, 2021, 13058 : 364 - 371
  • [5] Approximating tree edit distance through string edit distance
    Akutsu, Tatsuya
    Fukagawa, Daiji
    Takasu, Atsuhiro
    ALGORITHMS AND COMPUTATION, PROCEEDINGS, 2006, 4288 : 90 - +
  • [6] Approximating Tree Edit Distance through String Edit Distance
    Akutsu, Tatsuya
    Fukagawa, Daiji
    Takasu, Atsuhiro
    ALGORITHMICA, 2010, 57 (02) : 325 - 348
  • [7] Approximating Tree Edit Distance through String Edit Distance
    Tatsuya Akutsu
    Daiji Fukagawa
    Atsuhiro Takasu
    Algorithmica, 2010, 57 : 325 - 348
  • [8] A Dynamic Programming A* Algorithm for Computing Unordered Tree Edit Distance
    Yoshino, Takuya
    Higuchi, Shoichi
    Hirata, Kouichi
    2013 SECOND IIAI INTERNATIONAL CONFERENCE ON ADVANCED APPLIED INFORMATICS (IIAI-AAI 2013), 2013, : 135 - 140
  • [9] A linear tree edit distance algorithm for similar ordered trees
    Touzet, H
    COMBINATORIAL PATTERN MATCHING, PROCEEDINGS, 2005, 3537 : 334 - 345
  • [10] An improved algorithm for tree edit distance incorporating structural linearity
    Chen, Shihyen
    Zhang, Kaizhong
    COMPUTING AND COMBINATORICS, PROCEEDINGS, 2007, 4598 : 482 - +