ResearchTrend.AI
  • Papers
  • Communities
  • Events
  • Blog
  • Pricing
Papers
Communities
Social Events
Terms and Conditions
Pricing
Parameter LabParameter LabTwitterGitHubLinkedInBlueskyYoutube

© 2025 ResearchTrend.AI, All rights reserved.

  1. Home
  2. Papers
  3. 2106.05610
57
23

Hierarchical Agglomerative Graph Clustering in Nearly-Linear Time

10 June 2021
Laxman Dhulipala
David Eisenstat
Jakub Lacki
Vahab Mirrokni
Jessica Shi
ArXiv (abs)PDFHTML
Abstract

We study the widely used hierarchical agglomerative clustering (HAC) algorithm on edge-weighted graphs. We define an algorithmic framework for hierarchical agglomerative graph clustering that provides the first efficient O~(m)\tilde{O}(m)O~(m) time exact algorithms for classic linkage measures, such as complete- and WPGMA-linkage, as well as other measures. Furthermore, for average-linkage, arguably the most popular variant of HAC, we provide an algorithm that runs in O~(nm)\tilde{O}(n\sqrt{m})O~(nm​) time. For this variant, this is the first exact algorithm that runs in subquadratic time, as long as m=n2−ϵm=n^{2-\epsilon}m=n2−ϵ for some constant ϵ>0\epsilon > 0ϵ>0. We complement this result with a simple ϵ\epsilonϵ-close approximation algorithm for average-linkage in our framework that runs in O~(m)\tilde{O}(m)O~(m) time. As an application of our algorithms, we consider clustering points in a metric space by first using kkk-NN to generate a graph from the point set, and then running our algorithms on the resulting weighted graph. We validate the performance of our algorithms on publicly available datasets, and show that our approach can speed up clustering of point datasets by a factor of 20.7--76.5x.

View on arXiv
Comments on this paper