English

An effective variant of the Hartigan $k$-means algorithm

Machine Learning 2026-04-24 v1

Abstract

The k-means problem is perhaps the classical clustering problem and often synonymous with Lloyd's algorithm (1957). It has become clear that Hartigan's algorithm (1975) gives better results in almost all cases, Telgarsky-Vattani note a typical improvement of 5%5\% -- 10%10\%. We point out that a very minor variation of Hartigan's method leads to another 2%2\% -- 5%5\% improvement; the improvement tends to become larger when either dimension or kk increase.

Keywords

Cite

@article{arxiv.2604.21798,
  title  = {An effective variant of the Hartigan $k$-means algorithm},
  author = {François Clément and Stefan Steinerberger},
  journal= {arXiv preprint arXiv:2604.21798},
  year   = {2026}
}