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 条
  • [21] An improved algorithm for tree edit distance with applications for RNA secondary structure comparison
    Chen, Shihyen
    Zhang, Kaizhong
    JOURNAL OF COMBINATORIAL OPTIMIZATION, 2014, 27 (04) : 778 - 797
  • [22] An improved algorithm for tree edit distance with applications for RNA secondary structure comparison
    Shihyen Chen
    Kaizhong Zhang
    Journal of Combinatorial Optimization, 2014, 27 : 778 - 797
  • [23] Graph Edit Distance Compacted Search Tree
    Chegrane, Ibrahim
    Hocine, Imane
    Yahiaoui, Said
    Bendjoudi, Ahcene
    Nouali-Taboudjemat, Nadia
    SIMILARITY SEARCH AND APPLICATIONS (SISAP 2022), 2022, 13590 : 181 - 189
  • [24] Analyzing edit distance on trees: Tree swap distance is intractable
    Department of Computing Science, Umeå University, 90187 Umeå, Sweden
    Proc. Prag. Str. Conf., (59-73):
  • [25] Tree edit distance from information theory
    Torsello, A
    Hancock, ER
    GRAPH BASED REPRESENTATIONS IN PATTERN RECOGNITION, PROCEEDINGS, 2003, 2726 : 71 - 82
  • [26] Tree Edit Distance and Maximum Agreement Subtree
    Shin, Kilho
    INFORMATION PROCESSING LETTERS, 2015, 115 (01) : 69 - 73
  • [27] A survey on tree edit distance and related problems
    Bille, P
    THEORETICAL COMPUTER SCIENCE, 2005, 337 (1-3) : 217 - 239
  • [28] Analysis of tree edit distance on XML data
    Wu, Yu-Fang
    Lin, Shu-Fen
    Yen, Hsu-Chun
    PROCEEDINGS OF THE SIXTH IASTED INTERNATIONAL CONFERENCE ON COMMUNICATIONS, INTERNET, AND INFORMATION TECHNOLOGY, 2007, : 5 - 10
  • [29] Learning probabilistic models of tree edit distance
    Bernard, Marc
    Boyer, Laurent
    Habrard, Amaury
    Sebban, Marc
    PATTERN RECOGNITION, 2008, 41 (08) : 2611 - 2629
  • [30] Analyzing Edit Distance on Trees: Tree Swap Distance is Intractable
    Berglund, Martin
    PROCEEDINGS OF THE PRAGUE STRINGOLOGY CONFERENCE 2011, 2011, : 59 - 73