Computing generalized cophenetic distances under all Lp norms: A near-linear time algorithmic framework
Open Access
- 10 June 2025
- journal article
- research article
- Published by Public Library of Science (PLoS) in PLOS Computational Biology
- Vol. 21 (6) , e1013069
Abstract
The cophenetic distance is a well-established metric in biology used to compare pairs of trees represented in a vector format. This distance was introduced by Cardona and his co-authors, building on the foundational work of Sokal and Rohlf, which dates back over 60 years. It is widely recognized for its versatility since it can analyze trees with edge weights using various vector norms. However, when comparing large-scale trees, the quadratic runtime of the current best-known (i.e., naïve) algorithm for computing the cophenetic distance can become prohibitive. Recently, a new algorithmic framework with near-linear time complexity has been developed to calculate the distances of a generalized class of cophenetic distances, which are derived from the work of Sokal and Rohlf. This improvement not only allows the cophenetic distance to be utilized in large-scale studies but also enhances the versatility of these studies by incorporating generalized variants of the cophenetic distance. However, the framework is limited to applying only the L1 and L2 vector norms, which significantly restricts the versatility of generalized cophenetic distances in large-scale applications. To address this limitation, we present a near-linear time algorithmic framework for computing the generalized cophenetic distances across all Lp vector norms. In our scalability study, we showcase the practical performance of our unrestricted algorithmic framework. Furthermore, we investigate the applicability of the generalized cophenetic distances by analyzing the distributions of key components of these distances under various vector norms.Keywords
Funding Information
- Narodowe Centrum Nauki (2019/33/B/ST6/00737)
- Agricultural Research Service (3022-32000-018-017-S)
- Agricultural Research Service (5030-32000-231-095-S)
This publication has 32 references indexed in Scilit:
- The weighted total cophenetic index: A novel balance index for phylogenetic networksDiscrete Applied Mathematics, 2024
- Lack of host phylogenetic structure in the gut bacterial communities of New Zealand cicadas and their interspecific hybridsScientific Reports, 2022
- An $O(n \log n)$ Time Algorithm for Computing the Path-Length Distance Between TreesAlgorithmica, 2019
- Cophenetic Distances: A Near-Linear Time Algorithmic Framework2018
- The expected value of the squared cophenetic metric under the Yule and the uniform modelsMathematical Biosciences, 2018
- Jointly modeling niche width and phylogenetic distance to explain species co‐occurrenceEcosphere, 2017
- Mapping Phylogenetic Trees to Reveal Distinct Patterns of EvolutionMolecular Biology and Evolution, 2016
- Different gastric microbiota compositions in two human populations with high and low gastric cancer risk in ColombiaScientific Reports, 2016
- On the Nearest Neighbour Interchange Distance Between Evolutionary TreesJournal of Theoretical Biology, 1996
- Comparison of phylogenetic treesMathematical Biosciences, 1981