Efficiently Computing the Robinson-Foulds Metric

Nicholas D. Pattengale, Eric J. Gottlieb, Bernard M. E. Moret

Journal of Computational Biology · 2007 · 82 citations · 12 references

DOIFull text

Open access

TL;DR

The Robinson‑Foulds metric, commonly used to compare phylogenetic trees and computable in linear time by Day’s algorithm, becomes prohibitive when many large trees must be compared. The study proposes a randomized approximation scheme that, in sublinear time, yields a (1+ε) approximation of the Robinson‑Foulds metric with high probability. The method embeds trees into sublinear‑size vectors, applies the Johnson‑Lindenstrauss lemma to rapidly approximate vector norms, and provides a unified framework for edge‑based tree algorithms with explicit implementation tradeoffs. Experiments show that the approximation scheme improves Day’s algorithm in practice, achieves high precision with reduced running time, and the resulting FastRF tool is available as open source.

Abstract

The Robinson-Foulds (RF) metric is the measure most widely used in comparing phylogenetic trees; it can be computed in linear time using Day's algorithm. When faced with the need to compare large numbers of large trees, however, even linear time becomes prohibitive. We present a randomized approximation scheme that provides, in sublinear time and with high probability, a (1 + ɛ) approximation of the true RF metric. Our approach is to use a sublinear-space embedding of the trees, combined with an application of the Johnson-Lindenstrauss lemma to approximate vector norms very rapidly. We complement our algorithm by presenting an efficient embedding procedure, thereby resolving an open issue from the preliminary version of this paper. We have also improved the performance of Day's (exact) algorithm in practice by using techniques discovered while implementing our approximation scheme. Indeed, we give a unified framework for edge-based tree algorithms in which implementation tradeoffs are clear. Finally, we present detailed experimental results illustrating the precision and running-time tradeoffs as well as demonstrating the speed of our approach. Our new implementation, FastRF, is available as an open-source tool for phylogenetic analysis.

References

12