Voronoi Diagram — Definition, Formula & Examples
A Voronoi diagram is a partition of a plane into regions, where each region contains all the points closer to one specific site than to any other site. The boundaries between regions are segments of perpendicular bisectors of the line segments connecting neighboring sites.
Given a set of distinct points in (called sites or generators), the Voronoi cell of is the set , where denotes the Euclidean distance. The collection of all such cells and their boundaries forms the Voronoi diagram of .
Key Formula
Where:
- = The site (generator point) whose Voronoi cell is being defined
- = An arbitrary point in the plane
- = Euclidean distance from x to site p_i
How It Works
To construct a Voronoi diagram, start with a finite set of sites in the plane. For each pair of neighboring sites, compute the perpendicular bisector of the segment joining them. Each site's Voronoi cell is the intersection of all half-planes that contain that site, one half-plane per neighboring bisector. The result is a set of convex polygonal regions (some unbounded) that tile the entire plane with no gaps or overlaps. Efficient algorithms like Fortune's sweep-line algorithm compute Voronoi diagrams in time.
Worked Example
Problem: Three sites are located at , , and . Find the point equidistant from all three sites (the Voronoi vertex).
Step 1: Find the perpendicular bisector of segment AB. The midpoint is and AB is horizontal, so the bisector is the vertical line .
Step 2: Find the perpendicular bisector of segment AC. The midpoint is and the slope of AC is , so the bisector has slope and equation , which simplifies to .
Step 3: Substitute into the second bisector equation to find the intersection point.
Answer: The Voronoi vertex, equidistant from all three sites, is at . This is where the three Voronoi cell boundaries meet.
Why It Matters
Voronoi diagrams appear in computational geometry, GIS applications (finding the nearest hospital or fire station), mesh generation for finite-element analysis, and crystallography. They are dual to Delaunay triangulations, making them central to many algorithms in discrete and computational geometry courses.
Common Mistakes
Mistake: Assuming all Voronoi cells are bounded polygons.
Correction: Cells on the convex hull of the site set extend to infinity. Only interior cells are bounded convex polygons.
