On this page
A Voronoi diagram tells you, for every point on a map, which site is nearest. Give it shops, water pumps or mobile towers, and it splits the plane into one cell per site. If you can draw a perpendicular bisector, you can draw one by hand.
What is a Voronoi diagram?
A Voronoi cell is the set of all points closer to its site than to any other site (Voronoi diagram, Wikipedia). The diagram is named after Georgy Voronoy, who studied the general n-dimensional case in 1908.
Three facts follow from the definition:
Edges lie on perpendicular bisectors. The points equally far from sites P and Q form the perpendicular bisector of PQ, so the border between two neighbouring cells is a piece of that line.
Vertices are equidistant from three sites. Where three cells meet, the point is the same distance from all three sites, so it is the circumcentre of their triangle.
Cells are convex. Each cell is where several half-planes overlap, one for each other site, so it is a convex polygon. Cells of outer sites run off to infinity.
How do you draw a Voronoi diagram by hand?
Take four sites: A(0, 0), B(6, 0), C(0, 4) and D(10, 6). The diagram at the top of this post is this example, drawn to scale. If the midpoint and distance formulas are rusty, revise the coordinate geometry formulas first.
Write the bisectors. A and B: x = 3. A and C: y = 2. B and C: 3x - 2y = 5. B and D: 2x + 3y = 25. C and D: 5x + y = 30.
Find the first vertex. x = 3 and y = 2 meet at (3, 2), which also satisfies 3x - 2y = 5. It is √13 from A, B and C.
Find the second vertex. 2x + 3y = 25 and 5x + y = 30 meet at (5, 5), which also lies on 3x - 2y = 5. It is √26 from B, C and D.
Run the empty-circle test. A vertex counts only if no other site is closer to it. D is √65 from (3, 2), more than √13. A is √50 from (5, 5), more than √26. Both pass.
Join and trim. The B|C edge runs from (3, 2) to (5, 5). Four rays leave the vertices: down along x = 3 (A|B), left along y = 2 (A|C), to the lower right along 2x + 3y = 25 (B|D) and upwards along 5x + y = 30 (C|D).
Both triangles are right-angled, at A and at B, so each vertex is the midpoint of a hypotenuse: (3, 2) of BC and (5, 5) of CD.
Notice the missing edge: A and D never touch, because the B|C edge separates them. Each outer pair (A-B, B-D, D-C, C-A) shares an infinitely long edge. That matches the rule that two sites are neighbours on the convex hull exactly when their cells share an infinite side (Wikipedia).
Now use it. Which site is nearest to (4, 4)? The squared distances are 32 to A, 20 to B, 16 to C and 40 to D, so C wins. The point does sit in C's cell: it is above y = 2, 3(4) - 2(4) = 4 is less than 5, and 5(4) + 4 = 24 is less than 30.
Try it yourself with P(0, 0), Q(8, 0) and R(0, 6). The vertex is (4, 3), 5 units from each site. Now add S(8, 6): all four sites lie on one circle, so four cells meet at a single vertex, the awkward case computer programs must handle.
If the focus-directrix definition of a parabola feels shaky before the next section, revise it in the Fermi Concept Library, which covers concepts across physics, chemistry, biology, mathematics and computing.
How does Fortune's algorithm work?
Steven Fortune's paper A sweepline algorithm for Voronoi diagrams (Algorithmica, 1987) builds the diagram of n sites in O(n log n) time and O(n) space (Fortune's algorithm, Wikipedia).
A straight sweep line moves across the plane. Each site it has passed defines a parabola, with the site as focus and the sweep line as directrix. These arcs form the beach line, and the points where two arcs meet trace out Voronoi edges. Two kinds of event change the beach line:
Site event: the sweep line reaches a new site, and a new arc appears.
Circle event: the sweep line touches a circle through three sites with neighbouring arcs. The middle arc vanishes, and a Voronoi vertex is born.
That circle event is the empty-circle test from the hand example. There are O(n) events, and each takes O(log n) time.
Where are Voronoi diagrams used?
Cholera in London. In 1854, John Snow used a Voronoi-like map to show that most people who died in the Broad Street outbreak lived closer to the Broad Street pump than to any other pump (Wikipedia).
Rainfall. Called Thiessen polygons after Alfred Thiessen, who used them in 1911, the cells weight each rain gauge by the area it covers (Wikipedia).
Cell-tower coverage. In a model by Andrews, Baccelli and Ganti, each phone connects to the closest base station, so the coverage areas form a Voronoi tessellation (IEEE Transactions on Communications, 2011).
Change the distance rule and the cells change shape. Under taxicab geometry, where circles are squares, the bisectors bend.
To practise bisectors and circumcentres on fresh numbers, use the Fermi Problem Library, whose step-by-step solver explains the reasoning, not just the answer.



