Thought Toys · Strategy & computation · Exhibit 51
Every point on this map belongs to whichever dot is nearest to it — that's the dot's territory. Slide the amber dot from outside a crowd of eight toward its center and watch the instant its territory, which reached out forever, snaps shut into a walled-in cell.
Nearest-neighbor territories — drag any dot, or click empty space to add one explorerother sites
Outside the crowd — the amber dot's territory is unbounded
Its cell reaches out to infinity in at least one direction.
Every point on this map belongs to whichever dot is nearest to it. Collectively, those territories tile the whole plane without gaps or overlaps — this tessellation is called a Voronoi diagram, and the same idea locates a city's nearest hospital, a cell's nearest neighbor in a tissue sample, or a cell tower's coverage area. Nine dots sit on the map: eight form a loose crowd, and one — amber — is yours to move.
Drag the slider and the amber dot sweeps from well outside the crowd toward its center. While it's outside, its territory reaches out in some direction forever — unbounded, open country. The instant it crosses the crowd's outer edge, that territory snaps shut: every direction now runs into some other dot's territory first. You can also grab any dot directly with the mouse, including the crowd itself, or click empty space to drop a new one.
improve/verify/51-voronoi.js): across 25 random configurations of 5–14 sites, the
two methods agree on every single site; sweeping a dragged point from far outside a fixed
triangle to its centroid crosses the hull boundary exactly once, exactly where a
convex region's geometry requires. Negative control: jittering a deep-interior
point by up to 15 units across 200 independent trials never once puts it on the hull — moving
around inside the crowd, however you move, never unbounds a territory that's actually enclosed.
Also in Strategy & computation: Catch one error, miss the next →
← the cabinet · Thought Toys — a cabinet of explorable explanations. Exhibit 51.