Click to place several points. The entire plane is automatically divided into colored regions (a Voronoi diagram) based on which point is closest.
Every location inside a region is closer to that region's point than to any other point. This approach is used in real problems such as finding the nearest convenience store, hospital, or station.