Menu
Sign up Sign in

AI HL · 12.8

Voronoi Diagrams

12.8.3

Sites, cells, edges and vertices

12.8.3

Sites, cells, edges and vertices

Target: I can name the parts of a Voronoi diagram: sites, cells, edges and vertices. (+5 more)

By the end of this section

Key points

The parts of a Voronoi diagram

  • The sites are the given points. Each site has a cell: the region of points that are closer to that site than to any other site.
  • The boundaries of the cells are the edges. An edge is part of the perpendicular bisector of two sites.
  • A vertex is a point where edges meet. At least three edges meet at every vertex.
  • Every point on an edge is the same distance from the two sites on either side. A vertex is the same distance from three or more sites.

Drawing a diagram by eye

  • Mark the midpoint of each pair of neighbouring sites.
  • Draw an edge through each midpoint at a right angle to the line joining the two sites.
  • Stop each edge where it meets another edge. That point is a vertex.
  • Check each vertex: it should be the same distance from three sites. Check each edge is at 90° to the line joining its two sites.

Reading a diagram

  • A point inside a cell is nearer to that cell's site than to any other site.
  • To find the equation of an edge, find the perpendicular bisector of the two sites it separates.
  • To find a vertex, solve the equations of two of its edges together.
  • Two sites share an edge if no other site gets in between them. Test: find the midpoint. If no other site is as close to it as the two sites are, they share an edge.
  • To find the area of a cell, split it into triangles and rectangles from its vertices. The area of a triangle is half the base times the height. One unit on the map is the scale, so one square unit is the scale squared.

Four sites

  • Four sites usually give two vertices with three edges each.
  • If the four sites are the corners of a rectangle, one vertex at the centre has four edges.
  • If one site is inside the triangle formed by the other three, its cell is a closed triangle.

On the calculator

Finding a vertex

  • Write the equations of two edges in the form ax + by = c.
  • Use the calculator's simultaneous equation solver with those two equations.
  • The solution x, y is the vertex. Check it is the same distance from the three sites.

Screenshot and video to come

Checking edges on a graph

  • Rearrange each edge into y = mx + c and enter it as a function.
  • Plot the sites as points.
  • The vertices are where the lines cross.

Screenshot and video to come

Explore: the perpendicular bisector

Drag the sites A and B. The working finds the perpendicular bisector line by line. Check that it matches the line on the grid.

Drag A or B.

  1. Move B until A and B have the same y-coordinate. What kind of line is the bisector now? Why can you not use the gradient formula?
  2. Multiply the gradient of AB by the gradient of the bisector. What do you get each time?
  3. Move A and B so that the midpoint stays where it is. What changes about the bisector, and what stays the same?
  4. Read the coordinates of a grid point on the shaded side. Is it nearer to A or to B? Check with the distance formula.

Explore: build a Voronoi diagram

Drag the sites, add one or take one away, and watch the cells change. Drag the orange point P to see which site is nearest to it.

Drag a site or the point P.

  1. Drag P across an edge. What happens to the nearest site? What is true about the two distances when P is on the edge?
  2. Tick the vertices and press one. How many sites are the same distance from it? What does the dashed circle show?
  3. Add a site close to the middle of the diagram. Which cells get smaller, and which cells do not change at all?
  4. Move two sites so that they are very close together. Where is the edge between them? Why is it so short or so long?

Worked examples

Problems like the ones in class. Pick one, try it, then open the working.
Naming the parts

The diagram shows the Voronoi diagram for the sites \(A(3, 2)\), \(B(11, 6)\), \(C(5, 8)\). Name the parts, and write down the number of edges.

2468101224681012xyABC
Working
  1. Sites

    A, B and C

    The sites are the given points, marked with dots.

  2. Cells

    3 cells

    Each site has one cell: all the points closer to it than to the other two.

  3. Edges

    3 edges

    There is one edge between each pair of cells. Each lies on the perpendicular bisector of two sites.

  4. Vertex

    1 vertex at \((7, 4)\)

    The three edges meet here. It is \(4.47\) from each site.

Video walkthrough coming
Drawing a diagram by eye

Draw the Voronoi diagram for the sites \(A(8, 3)\), \(B(12, 5)\), \(C(6, 11)\), \(D(2, 5)\), \(E(6, 7)\). Find the y-coordinate of the vertex where the cells of B, C and E meet.

24681012142468101214xyABCDE
Working
  1. Midpoints

    Neighbouring pairs: AB \((10, 4)\), AD \((5, 4)\), AE \((7, 5)\), BC \((9, 8)\), BE \((9, 6)\), CD \((4, 8)\), CE \((6, 9)\), DE \((4, 6)\)

    Mark each midpoint on the grid. Neighbours are sites with no other site in between.

  2. Edges

    AB: the sites have gradient \(\frac{1}{2}\), so the edge has gradient \(-2\); AD: the sites have gradient \(-\frac{1}{3}\), so the edge has gradient \(3\); AE: the sites have gradient \(-2\), so the edge has gradient \(\frac{1}{2}\) ...

    Through each midpoint draw a line at a right angle to the line joining the two sites.

  3. Vertices

    From the calculator: the edges of BC and BE meet at \((10, 9)\)

    Solve the equations of two edges together. Stop the edges at the vertices: \((\frac{5}{2}, 9)\), \((5, 4)\), \((9, 6)\), \((10, 9)\).

  4. 24681012142468101214xyABCDE
    The diagram

    All five cells drawn

    Check: \((10, 9)\) is \(4.47\) from B, C and E.

Video walkthrough coming
Finishing a cell

The sites are \(A(0, 5)\), \(B(3, 2)\), \(C(4, 10)\), \(D(10, 2)\), \(E(4, 5)\). The dashed lines are three edges of the cell containing E. (a) Find the equation of the line that forms the final edge, in the form \(px+qy=r\). (b) Sketch the cell containing E. (c) What can you say about the point \((5, 4)\), which lies in the cell?

−22468101224681012xyABCDE
Working
  1. Which edge is missing

    The edge between D and E

    The dashed lines are the edges of E with A, B and C. The cell of E also borders D.

  2. Its equation

    Midpoint: \((7, \frac{7}{2})\); gradient of DE \(-\frac{1}{2}\); edge gradient \(2\); \(4x-2y=21\)

    The edge is the perpendicular bisector of D and E. Multiply to clear fractions.

  3. −22468101224681012xyABCDEQ
    The cell

    Vertices \((9, \frac{15}{2})\), \((2, \frac{15}{2})\), \((2, 4)\), \((\frac{13}{2}, \frac{5}{2})\)

    The final edge closes the cell into a quadrilateral. Shade it.

  4. The point

    \(QE=\sqrt{2}=1.41\); next nearest \(QB=\sqrt{8}=2.83\)

    A point in the cell of E is closer to E than to any other site.

Video walkthrough coming
Do two sites share an edge?

The sites are \(A(3, 5)\), \(B(7, 5)\), \(C(5, 1)\), \(D(5, 9)\). Do the cells of A and B share an edge? Do the cells of C and D?

246810246810xyABCD
Working
  1. Midpoint of AB

    M = \((5, 5)\); \(AM=2\), \(BM=2\), \(CM=4\), \(DM=4\)

    A and B are the closest sites to M. No other site gets in between.

  2. A and B

    They share an edge

    The edge lies on the line x = 5, around the midpoint.

  3. Midpoint of CD

    The midpoint is also \((5, 5)\)

    A and B are both closer to this point than C and D are.

  4. 246810246810xyABCD
    C and D

    They do not share an edge

    The cells of A and B come between the cells of C and D.

Video walkthrough coming
Four-site diagrams

Give the coordinates of four sites for each case: (a) a diagram with two vertices, each with three edges; (b) a diagram with one vertex with four edges; (c) a diagram where one site is completely surrounded by the cells of the other three.

Working
  1. 2468101224681012xyABCD
    (a) Two vertices

    Sites \(A(1, 7)\), \(B(5, 7)\), \(C(5, 2)\), \(D(8, 4)\); vertices \((3, \frac{9}{2})\) and \((\frac{11}{2}, \frac{9}{2})\)

    Four sites that do not lie on one circle give two vertices.

  2. 2468101224681012xyABCD
    (b) A vertex of degree 4

    Sites \(A(2, 1)\), \(B(8, 1)\), \(C(8, 5)\), \(D(2, 5)\); vertex \((5, 3)\)

    The four corners of a rectangle are all \(3.61\) from the centre, so all four cells meet there.

  3. 2468101224681012xyABCD
    (c) A surrounded site

    Sites \(A(9, 10)\), \(B(6, 3)\), \(C(2, 11)\), \(D(6, 7)\); D inside triangle ABC

    D has an edge with each of A, B and C, so its cell is a triangle: vertices \((11, 5)\), \((\frac{11}{2}, \frac{21}{2})\), \((0, 5)\).

Video walkthrough coming
The area of a cell

A nature reserve is a rectangle 12 km by 8 km. Four ranger stations are at \(A(5, 5)\), \(B(2, 3)\), \(C(6, 1)\) and \(E(5, 3)\), where one unit is 1 km. The cell of E is a triangle with vertices \((3.5, 1)\), \((3.5, 4)\) and \((9.5, 4)\). Find the area of the cell of E, and the percentage of the reserve that is nearer to E than to any other station.

12345678910111212345678xyABCE
Working
  1. Base and height

    Base along \(y=4\): \(9.5-3.5=6\). Height from \((3.5, 1)\) up to \(y=4\): \(3\)

    Two of the vertices share the line y = 4, so take that side as the base. The right angle is at (3.5, 4), so the height is the vertical side.

  2. Area of the cell

    \(\frac{1}{2}\times6\times3=9\) km²

    Area of a triangle is half the base times the height.

  3. Share of the reserve

    Reserve: \(12\times8=96\) km². \(\frac{9}{96}\times100=9.375\), so \(9.38\%\)

    Divide the cell by the whole region. Give 3 significant figures.

Video walkthrough coming