How does Lloyd's algorithm for k-means work step-by-step?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: easy
Interview Round: Other
Overview: Asks you to walk through Lloyd's algorithm for k-means one step at a time. Tests understanding of initialization, the assignment and update steps, convergence to a local minimum, empty clusters and per-iteration cost.