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 条
  • [31] A parallel graph edit distance algorithm
    Abu-Aisheh, Zeina
    Raveaux, Romain
    Ramel, Jean-Yves
    Martineau, Patrick
    EXPERT SYSTEMS WITH APPLICATIONS, 2018, 94 : 41 - 57
  • [32] Complexity Algorithm Analysis for Edit Distance
    Maarif, H. A.
    Akmeliawati, R.
    Htike, Z. Z.
    Gunawan, Teddy S.
    2014 INTERNATIONAL CONFERENCE ON COMPUTER AND COMMUNICATION ENGINEERING (ICCCE), 2014, : 135 - 137
  • [33] The greedy algorithm for edit distance with moves
    Kaplan, H
    Shafrir, N
    INFORMATION PROCESSING LETTERS, 2006, 97 (01) : 23 - 27
  • [34] Graph Similarity Using Tree Edit Distance
    Dwivedi, Shri Prakash
    Srivastava, Vishal
    Gupta, Umesh
    STRUCTURAL, SYNTACTIC, AND STATISTICAL PATTERN RECOGNITION, S+SSPR 2022, 2022, 13813 : 233 - 241
  • [35] Faster algorithms for guided tree edit distance
    Tsur, Dekel
    INFORMATION PROCESSING LETTERS, 2008, 108 (04) : 251 - 254
  • [36] An Improved Sketching Algorithm for Edit Distance
    Jin, Ce
    Nelson, Jelani
    Wu, Kewen
    38TH INTERNATIONAL SYMPOSIUM ON THEORETICAL ASPECTS OF COMPUTER SCIENCE (STACS 2021), 2021, 187
  • [37] An Edit Distance Algorithm with Block Swap
    Xia, Tian
    PROCEEDINGS OF THE 9TH INTERNATIONAL CONFERENCE FOR YOUNG COMPUTER SCIENTISTS, VOLS 1-5, 2008, : 54 - 59
  • [38] Optimal Algorithms for Bounded Weighted Edit Distance
    Cassis, Alejandro
    Kociumaka, Tomasz
    Wellnitz, Philip
    2023 IEEE 64TH ANNUAL SYMPOSIUM ON FOUNDATIONS OF COMPUTER SCIENCE, FOCS, 2023, : 2177 - 2187
  • [39] Similarity Assessment of Unified Modeling Language Class Diagram Using Tree Edit Distance Algorithm
    Simanjuntak, Humasak
    Hutajulu, Dessy
    Manurung, Eko
    Hutagaol, Bunga
    ADVANCED SCIENCE LETTERS, 2015, 21 (11) : 3577 - 3582
  • [40] Extend tree edit distance for effective object identification
    Wang, Yue
    Wang, Hongzhi
    Zhang, Liyan
    Wang, Yang
    Li, Jianzhong
    Gao, Hong
    KNOWLEDGE AND INFORMATION SYSTEMS, 2016, 46 (03) : 629 - 656