OPTIMAL-ALGORITHMS FOR COMPARING TREES WITH LABELED LEAVES
OPTIMAL-ALGORITHMS FOR COMPARING TREES WITH LABELED LEAVES
复制标题
DOI:
10.1007/bf01908061
复制
发表时间:
1985-01-01
影响因子:
2
通讯作者:
DAY, WHE
中科院分区:
文献类型:
--
作者:
DAY, WHE
Let Rn denote the set of rooted trees with n leaves in which the leaves are labeled by the integers in { 1, . . . , n}; and among interior vertices only the root may have degree 2. Associated with each interior vertex v in such a tree is the subset, or cluster, of leaf labels in the subtree rooted at v. Cluster {1, . . . , n} is called trivial. Clusters are used in quantitative measures of similarity, dissimilarity and consensus among trees. For any k trees in Rn, the strict consensus tree C(T1, . . . , Tk) is that tree in Rn containing exactly those clusters common to every one of the k trees. Similarity between trees T1 and T2 in Rn is measured by the number S(T1, T2) of nontrivial clusters in both T1 and T2; dissimilarity, by the number D(T1, T2) of clusters in T1 or T2 but not in both. Algorithms are known to compute C(T1, . . . , Tk) in O(kn2) time, and S(T1, T2) and D(T1, T2) in O(N2) time. A special representation of the clusters of any tree T in Rn, is proposed that permits testing in constant time whether a given cluster exists in T. Algorithms are described that exploit this representation to compute C(T1, . . . , Tk) in O(kn) time, and S(T1, T2) and D(T1, T2) in O(n) time. These algorithms are optimal in a technical sense. They enable well-known indices of consensus between 2 [phylogenetic] trees to be computed in O(n) time. All these results apply as well to comparable problems involving unrooted trees with labeled leaves.