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 条
  • [21] A Faster Algorithm for Computing Maximal α-gapped Repeats in a String
    Tanimura, Yuka
    Fujishige, Yuta
    Tomohiro, I
    Inenaga, Shunsuke
    Bannai, Hideo
    Takeda, Masayuki
    STRING PROCESSING AND INFORMATION RETRIEVAL (SPIRE 2015), 2015, 9309 : 124 - 136
  • [22] Integral trees: Subtree depth and diameter
    Kropatsch, WG
    Haxhimusa, Y
    Pizlo, Z
    COMBINATORIAL IMAGE ANALYSIS, PROCEEDINGS, 2004, 3322 : 77 - 87
  • [23] On the maximum mean subtree order of trees
    Cambie, Stijn
    Wagner, Stephan
    Wang, Hua
    EUROPEAN JOURNAL OF COMBINATORICS, 2021, 97
  • [24] Optimal computation of all tandem repeats in a weighted sequence
    Barton, Carl
    Iliopoulos, Costas S.
    Pissis, Solon P.
    ALGORITHMS FOR MOLECULAR BIOLOGY, 2014, 9
  • [25] Optimal computation of all tandem repeats in a weighted sequence
    Carl Barton
    Costas S Iliopoulos
    Solon P Pissis
    Algorithms for Molecular Biology, 9
  • [26] An O(n log n) algorithm for the Maximum Agreement Subtree problem for binary trees
    Cole, R
    Hariharan, R
    PROCEEDINGS OF THE SEVENTH ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, 1996, : 323 - 332
  • [27] Reconstructing trees from subtree weights
    Pachter, L
    Speyer, D
    APPLIED MATHEMATICS LETTERS, 2004, 17 (06) : 615 - 621
  • [28] An O(n log n) algorithm for the maximum agreement subtree problem for binary trees
    Cole, R
    Colton, MF
    Hariharan, R
    Przytycka, T
    Thorup, M
    SIAM JOURNAL ON COMPUTING, 2000, 30 (05) : 1385 - 1404
  • [29] An Effective Algorithm for Computing Energy-Efficient Broadcasting Trees in All-Wireless Networks
    Bein, Doina
    Zheng, S. Q.
    AD HOC & SENSOR WIRELESS NETWORKS, 2010, 10 (04) : 253 - 265
  • [30] An effcient strategy for generating all descendant subtree patterns from phylogenetic trees with its implementation
    Hsieh, Sun-Yuan
    Huang, Chao-Wen
    APPLIED MATHEMATICS AND COMPUTATION, 2007, 193 (02) : 408 - 418