3.3A

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.
3.3B

Finding Perpendicular Bisector Equations

  • To find the boundary line separating site $A(x_1, y_1)$ and site $B(x_2, y_2)$:
    1. Find the midpoint $M$: $$M = \left( \frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2} \right)$$
    2. Find the gradient of segment $AB$ ($m_{AB}$): $$m_{AB} = \frac{y_2 - y_1}{x_2 - x_1}$$
    3. Find the perpendicular gradient $m_{\perp}$: $$m_{\perp} = -\frac{1}{m_{AB}}$$
    4. 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.

Step 1: Midpoint $M$: $$M = \left(\frac{2 + 8}{2}, \frac{5 + 1}{2}\right) = (5, 3)$$
Step 2: Gradient $m_{AB}$: $$m_{AB} = \frac{1 - 5}{8 - 2} = \frac{-4}{6} = -\frac{2}{3}$$
Step 3: Perpendicular gradient $m_{\perp}$: $$m_{\perp} = -\frac{1}{-2/3} = \frac{3}{2}$$
Step 4: Equation through $(5, 3)$: $$y - 3 = \frac{3}{2}(x - 5) \implies 2(y - 3) = 3(x - 5) \implies 2y - 6 = 3x - 15 \implies 3x - 2y - 9 = 0$$

Final Answer: $y = \frac{3}{2}x - \frac{9}{2}$ (or $3x - 2y - 9 = 0$)

3.3C

Nearest-Neighbor Interpolation

  • When estimating an unknown property (e.g., rainfall, air quality index, soil pH) at an unmeasured location $P(x, y)$:
    1. Determine which Voronoi cell contains point $P$.
    2. 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).
A (1,2)B (5,2)x = 306
In the territory 0 ≤ x ≤ 6, 0 ≤ y ≤ 4, the shared boundary is x = 3.

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.

Exercise 1 (Paper 1 — 4 Marks): Two cell towers are positioned at $P(1, 3)$ and $Q(5, 7)$.
  1. Find the coordinates of the midpoint of $PQ$.
  2. Find the equation of the perpendicular bisector of $PQ$ in the form $y = mx + c$.
(a) Midpoint $M = \left(\frac{1+5}{2}, \frac{3+7}{2}\right) = (3, 5)$ [A1]
(b) Gradient $m_{PQ} = \frac{7 - 3}{5 - 1} = \frac{4}{4} = 1$ [A1]
Perpendicular gradient $m_{\perp} = -\frac{1}{1} = -1$ [M1]
Equation: $y - 5 = -1(x - 3) \implies y - 5 = -x + 3 \implies y = -x + 8$ [A1]

Answer: (a) $(3, 5)$, (b) $y = -x + 8$

Exercise 2 (Paper 2 — 5 Marks): Three fire stations are located at $A(0, 4)$, $B(6, 4)$, and $C(3, -2)$.
  1. Find the equation of the perpendicular bisector of $AB$.
  2. Show that the perpendicular bisector of $BC$ has equation $x + 2y = 6.5$.
  3. Hence, find the coordinates of the Voronoi vertex $V$ formed by these three sites.
(a) Segment $AB$ is horizontal ($y=4$). Midpoint is $(3, 4)$.
The perpendicular line is vertical: $x = 3$ [M1][A1]
(b) Midpoint of $BC = \left(\frac{6+3}{2}, \frac{4-2}{2}\right) = (4.5, 1)$ [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]
(c) Intersection with $x = 3$ gives $y = 1.75$: Vertex $V(3, 1.75)$ [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.

Exercise 3: Find the bisector of A(2,1), B(2,7).
The segment is vertical with midpoint (2,4); the bisector is $y=4$. No reciprocal-gradient calculation is needed.
Exercise 4: For A(0,0), B(4,0), C(0,4), construct A’s cell and locate the common vertex.
$d_A^2\le d_B^2$ gives $x\le2$; comparison with C gives $y\le2$. The vertex is (2,2), radius $\sqrt8$. Draw only the retained bisector portions.
Exercise 5: For the same three sites, is P(2,5) on a Voronoi edge between A and B?
No. Squared distances to A and B are 29, but to C are 5. Equality for a pair is insufficient if another site is closer.
Exercise 6: A(0,0), B(4,0), C(0,4) have rainfall 12, 20, 30 mm. Estimate rainfall at (3,1).
Squared distances are 10, 2, 18. B is nearest, so the nearest-neighbour estimate is 20 mm; do not take a weighted average.
Exercise 7: A(0,0) records 12 mm and B(4,0) records 20 mm. Estimate at (2,1) and explain the ambiguity.
Both squared distances are 5. Report the tie and a stated rule. Either 12 or 20 mm follows a single-site tie rule; 16 mm requires a separate averaging convention.
Exercise 8: Clip the diagram for A(1,2), B(5,2) to $0\le x\le6$, $0\le y\le4$. Give both cell areas.
The boundary is $x=3$. Each cell is a 3 by 4 rectangle of area 12 square units. The shared boundary has zero area.
Exercise 9: A(0,0), B(4,0) are joined by a new site C(2,0). Find all cell boundaries and describe C’s cell.
AB’s former boundary $x=2$ disappears. AC’s bisector is $x=1$ and CB’s is $x=3$. C’s closed cell is $1\le x\le3$, unbounded vertically.
Exercise 10: Four sites are the corners (0,0), (4,0), (4,4), (0,4). Find the central vertex and explain why three-site-only reasoning is insufficient.
All four distances from (2,2) are $\sqrt8$. Four cells meet there. The retained edges form the four rays of $x=2$ and $y=2$, not every pairwise bisector.
Formulae

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)$$
Examiner Pitfalls

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}$.
Topic 3.3 Check

Exam Mini Test (5 Questions)

Score: 0 / 5

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…