Why does standard agglomerative hierarchical clustering fail to scale to large datasets?
Last updated
It needs the full pairwise distance matrix: O(n²) memory (100k points is about 40 GB). Repeated search and update costs O(n²) to O(n³) time.
Merges are greedy and final, so there is no cheap mini-batch or streaming update like k-means offers.
Workarounds: a sparse k-NN
connectivitygraph, pre-clustering (BIRCH or many k-means centroids), sampling then assigning the rest, or HDBSCAN.