Skip to content

k-means

learning

Level 2 of 3

Also called Lloyd's algorithm and k-means clustering.

To put points into k groups, start k centres, then join each point to its nearest centre and move each centre to the middle of its points, again and again until no centre moves.

distances measured
0
rounds
0

step 1 of 1

Examples

Points as two whole numbers from 0 to 10, 3 to 12 of them, then a semicolon and 1 to 3 centres to start from. For example: 1 2, 2 1, 8 8, 9 7; 1 2, 8 8