Imagine you scatter a thousand customers on a map and want to open k stores so that, on average, everyone is as close as possible to their nearest store. Or you have a heap of photos and want to sort them into k piles of "similar" ones. Both are the same task: clustering — split points into k groups so that each group is tight and the groups are well separated.
The standard tool for this is k-means. Its goal is crisp: choose k centers and assign every point to its nearest center so that the total within-cluster variance — the sum of squared distances from each point to its center — is as small as possible.
It sounds like the kind of thing a computer should just solve. It runs in the blink of an eye, after all. But run it twice and you may get two different answers. That wobble is not a bug — it is a fingerprint of a genuinely hard problem.
Comments
Loading comments...