What objective function does k-means optimize?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: easy
Interview Round: Other
Overview: Asks which objective function k-means minimizes and what that objective implies about centroids, cluster shapes and convergence. Tests whether you can write the loss, connect it to the two steps of Lloyd's algorithm, and reason about choosing the number of clusters.