Bostock is really a master of his own language... and is very expressive with it. Even as many (including myself) are grappling with the basics.
This particular algorithm seems to be related to the Voronoi Tesselation -- deciding which points get allocated to each of the k different centers