Objective
min. distance between objects in a cluster
max. distance between clusters
Algorithm
- Create $k$ initial clusters and find their centers
- For a random object, $x$, in cluster $C$:
- find the distance, $d$, from the center of $C$
- find the distances, $d_i$, from the centers of all other clusters
- Find the closest cluster, $C$.
- If $C$ $\neq$ $C\prime$, move $x$ from $C$ to $C\prime$ and recalculate the centers
- Go to 2 (repeat until no object moves)