Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. In the theory of
cluster analysis, the nearest-neighbor chain algorithm is a method that
can be used to perform several types of agglomerative hierarchical
clustering, using an amount of memory that is linear in the number of
points to be clustered and an amount of time linear in the number of
distinct distances between pairs of points. The main idea of the
algorithm is to find pairs of clusters to merge by following paths in
the nearest neighbor graph of the clusters until the paths terminate in
pairs of mutual nearest neighbors. The algorithm was developed and
implemented in 1982 by J. P. Benzécri and J. Juan, based on earlier
methods that constructed hierarchical clusterings using mutual nearest
neighbor pairs without taking advantage of nearest neighbor chains.