Cargando…
An optimal algorithm for computing all subtree repeats in trees
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...
Autores principales: | , , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
The Royal Society Publishing
2014
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3996578/ https://www.ncbi.nlm.nih.gov/pubmed/24751873 http://dx.doi.org/10.1098/rsta.2013.0140 |
_version_ | 1782313067466457088 |
---|---|
author | Flouri, T. Kobert, K. Pissis, S. P. Stamatakis, A. |
author_facet | Flouri, T. Kobert, K. Pissis, S. P. Stamatakis, A. |
author_sort | Flouri, T. |
collection | PubMed |
description | 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. |
format | Online Article Text |
id | pubmed-3996578 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2014 |
publisher | The Royal Society Publishing |
record_format | MEDLINE/PubMed |
spelling | pubmed-39965782014-05-28 An optimal algorithm for computing all subtree repeats in trees Flouri, T. Kobert, K. Pissis, S. P. Stamatakis, A. Philos Trans A Math Phys Eng Sci Articles 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. The Royal Society Publishing 2014-05-28 /pmc/articles/PMC3996578/ /pubmed/24751873 http://dx.doi.org/10.1098/rsta.2013.0140 Text en http://creativecommons.org/licenses/by/3.0/ © 2014 The Authors. Published by the Royal Society under the terms of the Creative Commons Attribution License http://creativecommons.org/licenses/by/3.0/, which permits unrestricted use, provided the original author and source are credited. |
spellingShingle | Articles Flouri, T. Kobert, K. Pissis, S. P. Stamatakis, A. An optimal algorithm for computing all subtree repeats in trees |
title | An optimal algorithm for computing all subtree repeats in trees |
title_full | An optimal algorithm for computing all subtree repeats in trees |
title_fullStr | An optimal algorithm for computing all subtree repeats in trees |
title_full_unstemmed | An optimal algorithm for computing all subtree repeats in trees |
title_short | An optimal algorithm for computing all subtree repeats in trees |
title_sort | optimal algorithm for computing all subtree repeats in trees |
topic | Articles |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3996578/ https://www.ncbi.nlm.nih.gov/pubmed/24751873 http://dx.doi.org/10.1098/rsta.2013.0140 |
work_keys_str_mv | AT flourit anoptimalalgorithmforcomputingallsubtreerepeatsintrees AT kobertk anoptimalalgorithmforcomputingallsubtreerepeatsintrees AT pississp anoptimalalgorithmforcomputingallsubtreerepeatsintrees AT stamatakisa anoptimalalgorithmforcomputingallsubtreerepeatsintrees AT flourit optimalalgorithmforcomputingallsubtreerepeatsintrees AT kobertk optimalalgorithmforcomputingallsubtreerepeatsintrees AT pississp optimalalgorithmforcomputingallsubtreerepeatsintrees AT stamatakisa optimalalgorithmforcomputingallsubtreerepeatsintrees |