Neighborjoining
Neighbor-joining is a distance-based algorithm for reconstructing phylogenetic trees. It was introduced by Naruya Saitou and Masami Nei in 1987 as a fast method to infer an unrooted tree from a matrix of pairwise evolutionary distances. The approach requires only a distance matrix, not sequence data, and is widely used for initial tree construction.
The method starts with a star-like tree containing all taxa. At each step it identifies a pair
In terms of complexity, neighbor-joining runs in roughly O(n^3) time with O(n^2) space, where n is the