paper

Sublinear Algorithms for Estimating Single-Linkage Clustering Costs

arXiv:2510.11547

Abstract

Single-linkage clustering (SLC) is a fundamental method for hierarchical data analysis. In the distance setting, a -clustering produced by SLC can be obtained by computing a minimum spanning tree (MST) and deleting its heaviest edges. This naturally induces a cost profile for the SLC hierarchy: for each , we define to be the weight of the resulting -component spanning forest, equivalently, the minimum total weight of any spanning forest with exactly connected components. The corresponding \emph{SLC cost profile} is , and the scalar quantity is the area under this profile. We study the problem of approximating these quantities in sublinear time. We assume that the input is a weighted graph of average degree with edge weights in , accessed through adjacency-list queries; missing edges are treated as having infinite distance. Our main result is a sampling-based algorithm that outputs a succinct sketch of the entire SLC cost profile in the distance setting. The algorithm runs in time and returns a sketch from which one can derive estimates satisfying . Thus, we obtain an approximation to the full profile whose error is at most an -fraction of the area under the true profile. In particular, this yields a -approximation to within the same running time. We also prove a nearly matching lower bound of queries for estimating .

arXiv commentAccepted by ESA 2026