Why is Lloyd's algorithm guaranteed to converge?
Last updated
Neither step increases SSE: nearest-centroid assignment minimizes each point's term, and the mean minimizes squared distances for fixed assignments.
SSE is bounded below by 0 and there are finitely many partitions (at most k^n). With consistent tie-breaking none repeats, so the algorithm terminates.
It reaches only a local optimum, and the guarantee depends on squared Euclidean distance plus the mean (hence k-medians/k-medoids for other metrics).