Cargando…

A practical O(n log(2 )n) time algorithm for computing the triplet distance on binary trees

The triplet distance is a distance measure that compares two rooted trees on the same set of leaves by enumerating all sub-sets of three leaves and counting how often the induced topologies of the tree are equal or different. We present an algorithm that computes the triplet distance between two roo...

Descripción completa

Detalles Bibliográficos
Autores principales: Sand, Andreas, Brodal, Gerth Stølting, Fagerberg, Rolf, Pedersen, Christian NS, Mailund, Thomas
Formato: Online Artículo Texto
Lenguaje:English
Publicado: BioMed Central 2013
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3549851/
https://www.ncbi.nlm.nih.gov/pubmed/23368759
http://dx.doi.org/10.1186/1471-2105-14-S2-S18
_version_ 1782256484860559360
author Sand, Andreas
Brodal, Gerth Stølting
Fagerberg, Rolf
Pedersen, Christian NS
Mailund, Thomas
author_facet Sand, Andreas
Brodal, Gerth Stølting
Fagerberg, Rolf
Pedersen, Christian NS
Mailund, Thomas
author_sort Sand, Andreas
collection PubMed
description The triplet distance is a distance measure that compares two rooted trees on the same set of leaves by enumerating all sub-sets of three leaves and counting how often the induced topologies of the tree are equal or different. We present an algorithm that computes the triplet distance between two rooted binary trees in time O (n log(2 )n). The algorithm is related to an algorithm for computing the quartet distance between two unrooted binary trees in time O (n log n). While the quartet distance algorithm has a very severe overhead in the asymptotic time complexity that makes it impractical compared to O (n(2)) time algorithms, we show through experiments that the triplet distance algorithm can be implemented to give a competitive wall-time running time.
format Online
Article
Text
id pubmed-3549851
institution National Center for Biotechnology Information
language English
publishDate 2013
publisher BioMed Central
record_format MEDLINE/PubMed
spelling pubmed-35498512013-01-23 A practical O(n log(2 )n) time algorithm for computing the triplet distance on binary trees Sand, Andreas Brodal, Gerth Stølting Fagerberg, Rolf Pedersen, Christian NS Mailund, Thomas BMC Bioinformatics Proceedings The triplet distance is a distance measure that compares two rooted trees on the same set of leaves by enumerating all sub-sets of three leaves and counting how often the induced topologies of the tree are equal or different. We present an algorithm that computes the triplet distance between two rooted binary trees in time O (n log(2 )n). The algorithm is related to an algorithm for computing the quartet distance between two unrooted binary trees in time O (n log n). While the quartet distance algorithm has a very severe overhead in the asymptotic time complexity that makes it impractical compared to O (n(2)) time algorithms, we show through experiments that the triplet distance algorithm can be implemented to give a competitive wall-time running time. BioMed Central 2013-01-21 /pmc/articles/PMC3549851/ /pubmed/23368759 http://dx.doi.org/10.1186/1471-2105-14-S2-S18 Text en Copyright ©2013 Sand et al.; licensee BioMed Central Ltd. http://creativecommons.org/licenses/by/2.0 This is an open access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
spellingShingle Proceedings
Sand, Andreas
Brodal, Gerth Stølting
Fagerberg, Rolf
Pedersen, Christian NS
Mailund, Thomas
A practical O(n log(2 )n) time algorithm for computing the triplet distance on binary trees
title A practical O(n log(2 )n) time algorithm for computing the triplet distance on binary trees
title_full A practical O(n log(2 )n) time algorithm for computing the triplet distance on binary trees
title_fullStr A practical O(n log(2 )n) time algorithm for computing the triplet distance on binary trees
title_full_unstemmed A practical O(n log(2 )n) time algorithm for computing the triplet distance on binary trees
title_short A practical O(n log(2 )n) time algorithm for computing the triplet distance on binary trees
title_sort practical o(n log(2 )n) time algorithm for computing the triplet distance on binary trees
topic Proceedings
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3549851/
https://www.ncbi.nlm.nih.gov/pubmed/23368759
http://dx.doi.org/10.1186/1471-2105-14-S2-S18
work_keys_str_mv AT sandandreas apracticalonlog2ntimealgorithmforcomputingthetripletdistanceonbinarytrees
AT brodalgerthstølting apracticalonlog2ntimealgorithmforcomputingthetripletdistanceonbinarytrees
AT fagerbergrolf apracticalonlog2ntimealgorithmforcomputingthetripletdistanceonbinarytrees
AT pedersenchristianns apracticalonlog2ntimealgorithmforcomputingthetripletdistanceonbinarytrees
AT mailundthomas apracticalonlog2ntimealgorithmforcomputingthetripletdistanceonbinarytrees
AT sandandreas practicalonlog2ntimealgorithmforcomputingthetripletdistanceonbinarytrees
AT brodalgerthstølting practicalonlog2ntimealgorithmforcomputingthetripletdistanceonbinarytrees
AT fagerbergrolf practicalonlog2ntimealgorithmforcomputingthetripletdistanceonbinarytrees
AT pedersenchristianns practicalonlog2ntimealgorithmforcomputingthetripletdistanceonbinarytrees
AT mailundthomas practicalonlog2ntimealgorithmforcomputingthetripletdistanceonbinarytrees