Also called Lloyd's algorithm and k-means clustering.
fresh numbers
The test's questions that a run answers, asked again on new numbers whenever you like. The answer, its working and the reason for every other choice come from k-means's own run on the numbers shown.
choose one
1question 1
Six points, 0 0, 5 6, 2 3, 4 0, 1 10 and 10 3, with two centres started at 4 0 and 0 0. How many rounds until no centre moves?
the answer, and why
the answer is B
Rounds 1 to 2 each move a centre. Round 3 changes nothing.
if you chose another
ARound 2 still moves both centres, so one more round is needed to see none move.
CRound 1 moves both centres, so it cannot be the last.
Six points, 10 5, 10 8, 3 1, 1 6, 8 8 and 6 10, with two centres started at 1 6 and 10 5. How far does the second centre move in round 1?
the answer, and why
the answer is B
Its points are 10 5, 10 8 and 8 8, whose middle is 9.33, 7. The centre started at 10, 5. 0.67 squared plus 2 squared is 4.449, and its root is about 2.11.
if you chose another
AThat is how far the first centre moves in round 1.
CThat is how far the second centre moves in round 2.
DThat is how far the first centre moves in round 2.