Fast Hierarchical Clustering and Other Applications of Dynamic Closest Pairs
<|reference_start|>Fast Hierarchical Clustering and Other Applications of Dynamic Closest Pairs: We develop data structures for dynamic closest pair problems with arbitrary distance functions, that do not necessarily come from any geometric structure on the objects. Based on a technique previously used by the author for Euclidean closest pairs, we show how to insert and delete objects from an n-object set, maintaining the closest pair, in O(n log^2 n) time per update and O(n) space. With quadratic space, we can instead use a quadtree-like structure to achieve an optimal time bound, O(n) per update. We apply these data structures to hierarchical clustering, greedy matching, and TSP heuristics, and discuss other potential applications in machine learning, Groebner bases, and local improvement algorithms for partition and placement problems. Experiments show our new methods to be faster in practice than previously used heuristics.<|reference_end|>
@article{eppstein1999fast,
    title={Fast Hierarchical Clustering and Other Applications of Dynamic Closest
  Pairs},
    author={David Eppstein},
    journal={J. Experimental Algorithmics 5(1):1-23, 2000},
    year={1999},
    doi={10.1145/351827.351829},
    archivePrefix={arXiv},
    eprint={cs/9912014},
    primaryClass={cs.DS}
}