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. 1701.07204
32
62

Fast Exact k-Means, k-Medians and Bregman Divergence Clustering in 1D

25 January 2017
A. Jørgensen
Kasper Green Larsen
Alexander Mathiasen
J. Nielsen
Stefan Schneider
Mingzhou Song
ArXivPDFHTML
Abstract

The kkk-Means clustering problem on nnn points is NP-Hard for any dimension d≥2d\ge 2d≥2, however, for the 1D case there exists exact polynomial time algorithms. Previous literature reported an O(kn2)O(kn^2)O(kn2) time dynamic programming algorithm that uses O(kn)O(kn)O(kn) space. It turns out that the problem has been considered under a different name more than twenty years ago. We present all the existing work that had been overlooked and compare the various solutions theoretically. Moreover, we show how to reduce the space usage for some of them, as well as generalize them to data structures that can quickly report an optimal kkk-Means clustering for any kkk. Finally we also generalize all the algorithms to work for the absolute distance and to work for any Bregman Divergence. We complement our theoretical contributions by experiments that compare the practical performance of the various algorithms.

View on arXiv
Comments on this paper