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 条
  • [1] Computing all subtree repeats in ordered trees
    Christou, Michalis
    Crochemore, Maxime
    Flouri, Tomas
    Iliopoulos, Costas S.
    Janousek, Jan
    Melichar, Borivoj
    Pissis, Solon R.
    INFORMATION PROCESSING LETTERS, 2012, 112 (24) : 958 - 962
  • [2] Computing All Subtree Repeats in Ordered Ranked Trees
    Christou, Michalis
    Crochemore, Maxime
    Flouri, Tomas
    Iliopoulos, Costas S.
    Janousek, Jan
    Melichar, Borivoj
    Pissis, Solon P.
    STRING PROCESSING AND INFORMATION RETRIEVAL, 2011, 7024 : 338 - +
  • [3] Fast Optimal Algorithms for Computing All the Repeats in a String
    Puglisi, Simon J.
    Smyth, William F.
    Yusufu, Munina
    PROCEEDINGS OF THE PRAGUE STRINGOLOGY CONFERENCE 2008, 2008, : 161 - 169
  • [4] Blossom: an Anytime Algorithm for Computing Optimal Decision Trees
    Demirovic, Emir
    Hebrard, Emmanuel
    Jean, Louis
    INTERNATIONAL CONFERENCE ON MACHINE LEARNING, VOL 202, 2023, 202
  • [5] Optimal Algorithm for Finding Representation of Subtree Distance
    Maehara, Takanori
    Ando, Kazutoshi
    IEICE TRANSACTIONS ON FUNDAMENTALS OF ELECTRONICS COMMUNICATIONS AND COMPUTER SCIENCES, 2022, E105A (09) : 1203 - 1210
  • [6] Optimal Algorithm for Finding Representation of Subtree Distance
    Maehara, Takanori
    Ando, Kazutoshi
    IEICE TRANSACTIONS ON FUNDAMENTALS OF ELECTRONICS COMMUNICATIONS AND COMPUTER SCIENCES, 2022, E105 (08)
  • [7] Computing all repeats of a partial word
    Sasikala, K.
    Dare, V.R.
    Thomas, D.G.
    2008, Charles Babbage Research Centre (67):
  • [8] Optimal bounds for computing α-gapped repeats
    Crochemore, Maxime
    Kolpakov, Roman
    Kucherov, Gregory
    INFORMATION AND COMPUTATION, 2019, 268
  • [9] Optimal Bounds for Computing α-gapped Repeats
    Crochemore, Maxime
    Kolpakov, Roman
    Kucherov, Gregory
    LANGUAGE AND AUTOMATA THEORY AND APPLICATIONS, LATA 2016, 2016, 9618 : 245 - 255