English

Sublinear Algorithms for Estimating Single-Linkage Clustering Costs

Data Structures and Algorithms 2025-10-14 v1

Abstract

Single-linkage clustering is a fundamental method for data analysis. Algorithmically, one can compute a single-linkage kk-clustering (a partition into kk clusters) by computing a minimum spanning tree and dropping the k1k-1 most costly edges. This clustering minimizes the sum of spanning tree weights of the clusters. This motivates us to define the cost of a single-linkage kk-clustering as the weight of the corresponding spanning forest, denoted by costk\mathrm{cost}_k. Besides, if we consider single-linkage clustering as computing a hierarchy of clusterings, the total cost of the hierarchy is defined as the sum of the individual clusterings, denoted by cost(G)=k=1ncostk\mathrm{cost}(G) = \sum_{k=1}^{n} \mathrm{cost}_k. In this paper, we assume that the distances between data points are given as a graph GG with average degree dd and edge weights from {1,,W}\{1,\dots, W\}. Given query access to the adjacency list of GG, we present a sampling-based algorithm that computes a succinct representation of estimates cost^k\widehat{\mathrm{cost}}_k for all kk. The running time is O~(dW/ε3)\tilde O(d\sqrt{W}/\varepsilon^3), and the estimates satisfy k=1ncost^kcostkεcost(G)\sum_{k=1}^{n} |\widehat{\mathrm{cost}}_k - \mathrm{cost}_k| \le \varepsilon\cdot \mathrm{cost}(G), for any 0<ε<10<\varepsilon <1. Thus we can approximate the cost of every kk-clustering upto (1+ε)(1+\varepsilon) factor \emph{on average}. In particular, our result ensures that we can estimate \cost(G)\cost(G) upto a factor of 1±ε1\pm \varepsilon in the same running time. We also extend our results to the setting where edges represent similarities. In this case, the clusterings are defined by a maximum spanning tree, and our algorithms run in O~(dW/ε3)\tilde{O}(dW/\varepsilon^3) time. We futher prove nearly matching lower bounds for estimating the total clustering cost and we extend our algorithms to metric space settings.

Keywords

Cite

@article{arxiv.2510.11547,
  title  = {Sublinear Algorithms for Estimating Single-Linkage Clustering Costs},
  author = {Pan Peng and Christian Sohler and Yi Xu},
  journal= {arXiv preprint arXiv:2510.11547},
  year   = {2025}
}

Comments

70 pages

R2 v1 2026-07-01T06:34:17.560Z