All revision notes topics

3.6 Voronoi diagramsIB Maths: Applications and Interpretation SL: Revision notes

Section 1

Sites, cells, edges and vertices

A Voronoi diagram divides a plane into regions according to which of a set of points is closest.

  • The given points are sites (schools, weather stations, hospitals).
  • Each cell is the region of points closer to its site than to any other site.
  • An edge is a boundary between two cells: points equidistant from two sites, part of the perpendicular bisector of the sites.
  • A vertex is where edges meet. In exam questions, a vertex is always where three edges meet. It is equidistant from three sites.
Key termsVoronoi diagramsitecelledgevertex
Common mistake

Drawing an edge through the sites. An edge is the perpendicular bisector, so it crosses the line between two sites at its midpoint at right angles.

Section 2

Equations of edges

In examinations the coordinates of the sites are given, and you are not asked to construct bisectors. You may be asked for the equation of a boundary: find the perpendicular bisector of the two sites.

  1. Midpoint of the two sites.
  2. Gradient of the line joining them; take the negative reciprocal.
  3. y−y1=m(x−x1)y-y_1=m(x-x_1). Example: sites A(2,1)A(2,1) and C(6,9)C(6,9). Midpoint (4,5)(4,5), gradient of ACAC is 22, so the edge has gradient −12-\frac12: y=−12x+7y=-\frac12x+7. Sites with equal yy-coordinates give a vertical edge (e.g. A(2,1)A(2,1), B(10,1)B(10,1): x=6x=6). A vertex is found by solving two edge equations simultaneously, e.g. x=6x=6 and y=−12x+7y=-\frac12x+7 give (6,4)(6,4).
Key termsboundarysimultaneous equations
Exam tip

A vertex is equidistant from three sites. Check by finding the distances: (6,4)(6,4) is 5 km from each of AA, BB and CC.

Section 3

Identifying the closest site

To decide which site is closest to a point XX, calculate the distance (or squared distance) from XX to each site and choose the smallest. Using squared distances avoids square roots. Example: sites P(1,2)P(1,2), Q(7,2)Q(7,2), R(4,8)R(4,8) and X(5,3)X(5,3). Squared distances: XP2=17XP^2=17, XQ2=5XQ^2=5, XR2=26XR^2=26. The closest site is QQ, so XX lies in the cell of QQ. A point on an edge is equidistant from two sites; it belongs to both cells.

Key termssquared distance
Exam tip

Compare squared distances. You only need the square root if the question asks for the distance itself.

Section 4

Adding a site

When a new site is added, a new cell appears around it. Its edges are the perpendicular bisectors between the new site and its neighbouring sites. Parts of the old cells are taken over by the new one, so the neighbouring cells shrink and edges and vertices change. Cells of sites far from the new one may be unaffected. Example: stations R1(3,3)R_1(3,3), R2(9,3)R_2(9,3) with edge x=6x=6. A new station R3(6,7)R_3(6,7) creates edges y=−0.75x+8.375y=-0.75x+8.375 (with R1R_1) and y=0.75x−0.625y=0.75x-0.625 (with R2R_2), meeting x=6x=6 at the vertex (6,3.875)(6,3.875). The edge x=6x=6 now only exists below this vertex.

Key termsnew cell
Common mistake

Leaving old edges where the new site has taken over. After adding a site, an old edge stops at the new vertex.

Section 5

Areas of regions

Cells are polygons, so find coordinates of the vertices and split the region into triangles or rectangles. Example: the reserve is 0≤x≤120\le x\le12, 0≤y≤80\le y\le8. The cell of R3R_3 has vertices (6,3.875)(6,3.875), (0.5,8)(0.5,8) and (11.5,8)(11.5,8) (the last two are where the edges meet y=8y=8). It is a triangle with base 1111 and height 4.1254.125, so area =12(11)(4.125)=22.7=\frac12(11)(4.125)=22.7 km2^2, which is 22.6996=23.6%\frac{22.69}{96}=23.6\% of the reserve. Substitute the boundary value (here y=8y=8) into an edge equation to find where an edge meets the side of the region.

Key termsarea of a cell
Exam tip

Draw a quick sketch of the cell with its vertex coordinates labelled before calculating the area.

Section 6

Interpolation and the toxic waste dump

Nearest neighbour interpolation estimates a value at a point using the value at the closest site: every point in a cell is given the same value as its site (for example rainfall). Example: X(5,3)X(5,3) is in the cell of QQ, so the rainfall is estimated as QQ's reading, 80 mm. It is not the mean of the readings. Toxic waste dump problem: to place a facility as far as possible from its nearest site (a waste dump, a noisy factory), choose a vertex of the Voronoi diagram. Vertices are the points furthest from their three closest sites. Find the vertex by solving two edge equations, then the distance from the vertex to a site. Example: villages V1(0,0)V_1(0,0), V2(8,0)V_2(8,0), V3(2,6)V_3(2,6) have a vertex at (4,2)(4,2), which is 20=4.47\sqrt{20}=4.47 km from each village. Other contexts: urban planning, spread of diseases, ecology, meteorology and resource management.

Key termsnearest neighbour interpolationtoxic waste dump problem
Common mistake

Averaging the values of nearby sites. Nearest neighbour interpolation uses the closest site only.

That's the notes covered.

Carry on to the next subtopic.

Exam questions on 3.6 Voronoi diagrams

  1. A Voronoi diagram is drawn for three schools, which are the sites A(2,1)A(2,1), B(10,1)B(10,1) and C(6,9)C(6,9). Coordinates are in km.
    Find the equation of the edge between the cells of AA and CC.2 marks
  2. Rainfall is recorded at three weather stations: P(1,2)P(1,2) recorded 120 mm, Q(7,2)Q(7,2) recorded 80 mm and R(4,8)R(4,8) recorded 60 mm. Coordinates are in km. The rainfall at any other point is estimated by nearest neighbour interpolation, using the Voronoi diagram of the three stations.
    A town TT is at (4,6)(4,6). Find the distance from TT to each station, and hence estimate the rainfall at TT.2 marks
  3. A company plans to build a waste facility as far as possible from its nearest village, at a vertex of the Voronoi diagram of three villages V1(0,0)V_1(0,0), V2(8,0)V_2(8,0) and V3(2,6)V_3(2,6). Coordinates are in km. In the Voronoi diagram, the edge between the cells of V1V_1 and V2V_2 is x=4x=4, and the edge between the cells of V2V_2 and V3V_3 is y=x−2y=x-2.
    Find the equation of the edge between the cells of V1V_1 and V3V_3, giving your answer in the form x+3y=dx+3y=d.3 marks
See the full worksheet

Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).