An optimal algorithm for computing all subtree repeats in trees

被引:2
|
作者
Flouri, T. [1 ]
Kobert, K. [1 ]
Pissis, S. P. [1 ,2 ]
Stamatakis, A. [1 ,3 ]
机构
[1] Heidelberg Inst Theoret Studies, D-69118 Heidelberg, Germany
[2] Kings Coll London, London WC2R 2LS, England
[3] Karlsruhe Inst Technol, D-76021 Karlsruhe, Germany
关键词
tree data structures; unrooted unordered labelled trees; subtree repeats;
D O I
10.1098/rsta.2013.0140
中图分类号
O [数理科学和化学]; P [天文学、地球科学]; Q [生物科学]; N [自然科学总论];
学科分类号
07 ; 0710 ; 09 ;
摘要
Given a labelled tree T, our goal is to group repeating subtrees of T into equivalence classes with respect to their topologies and the node labels. We present an explicit, simple and time-optimal algorithm for solving this problem for unrooted unordered labelled trees and show that the running time of our method is linear with respect to the size of T. By unordered, we mean that the order of the adjacent nodes (children/neighbours) of any node of T is irrelevant. An unrooted tree T does not have a node that is designated as root and can also be referred to as an undirected tree. We show how the presented algorithm can easily be modified to operate on trees that do not satisfy some or any of the aforementioned assumptions on the tree structure; for instance, how it can be applied to rooted, ordered or unlabelled trees.
引用
收藏
页数:13
相关论文
共 50 条
  • [31] Computing Optimal Steiner Trees in Polynomial Space
    Fedor V. Fomin
    Fabrizio Grandoni
    Dieter Kratsch
    Daniel Lokshtanov
    Saket Saurabh
    Algorithmica, 2013, 65 : 584 - 604
  • [32] Computing Optimal Steiner Trees in Polynomial Space
    Fomin, Fedor V.
    Grandoni, Fabrizio
    Kratsch, Dieter
    Lokshtanov, Daniel
    Saurabh, Saket
    ALGORITHMICA, 2013, 65 (03) : 584 - 604
  • [33] An optimal EREW parallel algorithm for computing breadth-first search trees on permutation graphs
    Chao, HS
    Hsu, FR
    Lee, RCT
    INFORMATION PROCESSING LETTERS, 1997, 61 (06) : 311 - 316
  • [34] An algorithm to find all identical internal sequence repeats
    Banerjee, Nirjhar
    Chidambarathanu, N.
    Michael, Daliah
    Balakrishnan, N.
    Sekar, K.
    CURRENT SCIENCE, 2008, 95 (02): : 188 - 195
  • [35] On Algorithm for Building of Optimal α-Decision Trees
    Alkhalid, Abdulaziz
    Chikalov, Igor
    Moshkov, Mikhail
    ROUGH SETS AND CURRENT TRENDS IN COMPUTING, PROCEEDINGS, 2010, 6086 : 438 - 445
  • [36] On the Subtree Size Profile of Binary Search trees
    Dennert, Florian
    Gruebel, Rudolf
    COMBINATORICS PROBABILITY & COMPUTING, 2010, 19 (04): : 561 - 578
  • [37] ON THE SUBTREE ISOMORPHISM-PROBLEM FOR ORDERED TREES
    MAKINEN, E
    INFORMATION PROCESSING LETTERS, 1989, 32 (05) : 271 - 273
  • [38] FURTHER COMMENTS ON THE SUBTREE ISOMORPHISM FOR ORDERED TREES
    GROSSI, R
    INFORMATION PROCESSING LETTERS, 1991, 40 (05) : 255 - 256
  • [39] ON THE MAXIMUM AGREEMENT SUBTREE CONJECTURE FOR BALANCED TREES
    Bordewich, Magnus
    Linz, Simone
    Owen, Megan
    St John, Katherine
    Semple, Charles
    Wicke, Kristina
    SIAM JOURNAL ON DISCRETE MATHEMATICS, 2022, 36 (01) : 336 - 354
  • [40] Reconstructibility of trees from subtree size frequencies
    Bartha, Denes
    Burcsi, Peter
    STUDIA UNIVERSITATIS BABES-BOLYAI MATHEMATICA, 2014, 59 (04): : 435 - 442