What is a Voronoi Diagram?
- A Voronoi diagram partitions a 2D plane containing a set of points called sites ($S_1, S_2, \dots, S_n$) into convex regions called cells.
- For every point $P$ strictly inside cell $V(S_i)$, the distance from $P$ to site $S_i$ is strictly less than the distance to any other site: $$d(P, S_i) < d(P, S_j) \quad \forall j \ne i$$
- Edges (Boundaries): The segments, rays or lines separating two neighboring cells are parts of the perpendicular bisector of the two corresponding sites. Points on an edge are equidistant to both sites.
- Vertices: Points where three (or more) edges meet. A Voronoi vertex is equidistant to the three nearest sites.
Finding Perpendicular Bisector Equations
- To find the boundary line separating site $A(x_1, y_1)$ and site $B(x_2, y_2)$:
- Find the midpoint $M$: $$M = \left( \frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2} \right)$$
- Find the gradient of segment $AB$ ($m_{AB}$): $$m_{AB} = \frac{y_2 - y_1}{x_2 - x_1}$$
- Find the perpendicular gradient $m_{\perp}$: $$m_{\perp} = -\frac{1}{m_{AB}}$$
- Write the line equation passing through $M$: $$y - y_M = m_{\perp}(x - x_M)$$
Solved Example 1: Boundary Equation
Two medical clinics are located at $A(2, 5)$ and $B(8, 1)$. Find the Cartesian equation of the boundary separating their service zones.
Final Answer: $y = \frac{3}{2}x - \frac{9}{2}$ (or $3x - 2y - 9 = 0$)
Nearest-Neighbor Interpolation
- When estimating an unknown property (e.g., rainfall, air quality index, soil pH) at an unmeasured location $P(x, y)$:
- Determine which Voronoi cell contains point $P$.
- Assign the measured value of that cell's generating site directly to $P$.
- If $P$ lies closer to site $A$ than site $B$, the value at $P$ is estimated as the value at $A$.
Constructing a complete cell
- Closed cell: $V(A)=\{P:d(P,A)\le d(P,S_j)\text{ for every }j\}$. Strict inequality describes its interior; boundary points can belong to several closed cells.
- Gradient-free bisector: expand $d(P,A)^2=d(P,B)^2$ to obtain $2(x_B-x_A)x+2(y_B-y_A)y=x_B^2+y_B^2-x_A^2-y_A^2$. This handles horizontal and vertical site pairs.
- Keep the correct half-plane: substitute the generating site into each distance inequality. Intersect these half-planes, then clip the cell to the specified territory.
- Do not keep every bisector: a point on the AB bisector is an AB boundary point only if no third site is closer. Edges can be segments, rays or full lines.
- Worked construction: A(0,0), B(4,0), C(0,4) give A’s cell $x\le2$, $y\le2$. AB’s edge is $x=2,y\le2$; AC’s edge is $y=2,x\le2$; BC’s edge is $x+y=4,x\ge2$. They meet at (2,2).
Ties, new sites and model checks
- A vertex may have four or more equally near sites. Three collinear distinct sites have parallel bisectors and no finite three-site vertex. Coincident sites need a shared-cell convention rather than a unique separating line.
- Adding a site takes points from existing cells wherever the new site is closer. Recheck the inequalities; old boundaries may disappear.
- Worked estimate: stations A(0,0), B(4,0), C(0,4) record 12, 20 and 30 mm. At P(3,1), squared distances are 10, 2 and 18, so estimate 20 mm from B.
- On a tied boundary, state a tie rule or report both possible station values. Averaging is an additional modelling choice, not automatically nearest-neighbour interpolation.
- Use coordinates on equal spatial scales. Euclidean distance assumes straight travel and equal accessibility; roads, rivers, terrain and station reliability can change the useful service zones.
- Nearest-neighbour estimates are constant within each cell and can jump at boundaries. More stations may improve spatial resolution but do not guarantee unbiased measurements.
10 Progressive Practice Exercises
Attempt each problem before opening its solution. Keep exact values until the final answer.
- Find the coordinates of the midpoint of $PQ$.
- Find the equation of the perpendicular bisector of $PQ$ in the form $y = mx + c$.
Perpendicular gradient $m_{\perp} = -\frac{1}{1} = -1$ [M1]
Answer: (a) $(3, 5)$, (b) $y = -x + 8$
- Find the equation of the perpendicular bisector of $AB$.
- Show that the perpendicular bisector of $BC$ has equation $x + 2y = 6.5$.
- Hence, find the coordinates of the Voronoi vertex $V$ formed by these three sites.
The perpendicular line is vertical: $x = 3$ [M1][A1]
$m_{BC} = \frac{-2 - 4}{3 - 6} = \frac{-6}{-3} = 2 \implies m_{\perp} = -\frac{1}{2}$
$y - 1 = -\frac{1}{2}(x - 4.5) \implies 2y - 2 = -x + 4.5 \implies x + 2y = 6.5$ [M1][A1]
Answer: (a) $x = 3$, (b) $x+2y=6.5$, (c) $V(3, 1.75)$. The distances from $V$ to $A$, $B$ and $C$ are all $3.75$ units.
Voronoi Construction Equations
Perpendicular Bisector:
$$M = \left(\frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2}\right), \quad m_{\perp} = -\frac{1}{m_{AB}}$$ $$y - y_M = m_{\perp}(x - x_M)$$Common Exam Mistakes in Voronoi Diagrams
- Perpendicular Bisector vs Midpoint Only: Many students write the equation of the line passing through the two sites instead of the perpendicular bisector passing through the midpoint.
- Horizontal & Vertical Lines: When two sites share the same $y$-coordinate, the segment is horizontal and its perpendicular bisector is vertical ($x = k$). Do not attempt to calculate $\frac{-1}{0}$.
Exam Mini Test (5 Questions)
1. A Voronoi vertex formed by three sites $A, B, C$ has what key property?
2. If site $A$ is at $(2, 4)$ and site $B$ is at $(6, 4)$, what is the equation of the boundary between their cells?
3. A pairwise bisector point is nearer to a third site. Is it a shared edge?
4. Three distinct collinear sites have how many finite three-site vertices?
5. Nearest-neighbour estimates within a cell are…