Fast Exact k-Means, k-Medians and Bregman Divergence Clustering in 1D
arXiv:1701.07204
Abstract
The -Means clustering problem on points is NP-Hard for any dimension , however, for the 1D case there exists exact polynomial time algorithms. Previous literature reported an time dynamic programming algorithm that uses 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 -Means clustering for any . 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.
Cited by in corpus (9)
- Monte Carlo Information Geometry: The dually flat case
- DRIVE: One-bit Distributed Mean Estimation
- Exchangeability, Conformal Prediction, and Rank Tests
- On the Fine-grained Complexity of One-Dimensional Dynamic Programming
- k-medoids and p-median clustering are solvable in polynomial time for a 2d Pareto front
- PKSpell: Data-Driven Pitch Spelling and Key Signature Estimation
- Frequency Estimation in Data Streams: Learning the Optimal Hashing Scheme
- Dynamic programming by polymorphic semiring algebraic shortcut fusion
- Planar p-center problems are solvable in polynomial time when clustering a Pareto Front