Group n points in k clusters of equal size [duplicate]
Try this k-means variation: Initialization: choose k centers from the dataset at random, or even better using kmeans++ strategy for each point, compute the distance to its nearest cluster center, and build a heap for this draw points from the heap, and assign them to the nearest cluster, unless the cluster is already overfull. If … Read more