The quartet distance
is a way of measuring the distance between two
phylogenetic trees. It is defined as the number of subsets of four leaves that are not related by the same
topology
In mathematics, topology (from the Greek words , and ) is concerned with the properties of a geometric object that are preserved under continuous deformations, such as stretching, twisting, crumpling, and bending; that is, without closing ho ...
in both trees.
Computing the quartet distance
The most straightforward computation of the quartet distance would require
time, where
is the number of leaves in the trees.
For binary trees, better
algorithm
In mathematics and computer science, an algorithm () is a finite sequence of rigorous instructions, typically used to solve a class of specific problems or to perform a computation. Algorithms are used as specifications for performing ...
s have been found to compute the distance in
*
time
*
time
and
*
time
Gerth Stølting Brodal ''et al.'' found an algorithm that takes
time to compute the quartet distance between two multifurcating trees when
is the maximum degree of the trees,
which i
accessiblein C, perl, and the
R packag
Quartet
References
{{DEFAULTSORT:Quartet Distance
Computational phylogenetics
Bioinformatics algorithms