As far as possible from every town
Four towns stand in a square region from 0 to 12 on both axes: A at (1, 2), B at (2, 7), C at (7, 2) and D at (10, 11). A waste dump has to go somewhere in the region, as far as possible from every town.
Being far from every town means being far from the nearest one. So each point of the region has one number that matters, its distance to its nearest town, and the dump goes where that number is largest.
The four towns and their Voronoi cells, in the region from 0 to 12.
Never inside a cell
Inside a cell there is one nearest town. Step straight away from it and the distance to it grows, while every other town is still farther, for a short enough step. So the point can always be improved, and no point inside a cell is the best.
The point (9, 3) is in C’s cell, from C. Moving on in the same direction to (11, 4) gives squared distances 104 to A, 90 to B, 20 to C and 50 to D: C is still nearest, now away.
P at (9, 3) is 2.24 from C, its nearest town.
Farther along the same direction, at (11, 4), P is 4.47 from C, and C is still its nearest town.
Along an edge
On an edge between two cells, the two towns are equally near. The edge between C and D lies on their perpendicular bisector, and along it the distance to both towns is least at the midpoint of CD, (8.5, 6.5), which is from each. Moving along the edge away from that midpoint, the distance grows.
This edge runs from the vertex (7, 7), 5 from C and D, to the border at , about 6.01 from C and D. The best point of an edge is at one of its ends. In the same way, along a straight stretch of the border inside one cell, the distance to that cell’s town is least at the point of the stretch closest to the town and grows on either side of it, so the best point is at an end of the stretch: a corner, or a point where an edge meets the border.
So only three kinds of point can be the answer: the Voronoi vertices, the corners of the region, and the points where an edge meets the border.
M, the midpoint of CD, is on the edge between their cells, 4.74 from each: the nearest the edge comes to them.
The vertices and their empty circles
At a Voronoi vertex three cells meet, so three towns are equally near. The vertex (4, 4) is from A, B and C. A circle centered at (4, 4) through those three towns holds no town inside it: D is away, outside. This is an empty circle, and its radius is the distance from its center to the nearest town.
The other vertex, (7, 7), is exactly 5 from B, C and D, and A is away. Its empty circle has radius 5, bigger than the radius at (4, 4), so (7, 7) is the better vertex.
The empty circle at (4, 4) passes through A, B and C, radius 3.61, and holds no town.
The empty circle at (7, 7) passes through B, C and D, radius 5.
The border
The largest empty circle at a vertex has radius 5, but the border of the region has candidates too. Each corner is measured to its nearest town: (0, 0) and (12, 12) are from A and from D, and (12, 0) and (0, 12) are from C and from B. The corners (12, 0) and (0, 12) already beat both vertices.
Four edges meet the border. The edge between A and B meets it at (0, 4.8), from A and B. The edge between A and C meets it at (4, 0), from A and C. The edge between B and D meets it at (4.5, 12), from B and D.
The edge between C and D meets the east side at . Its squared distance to C is , which is , so it is from C, and the same from D.
The corner K at (0, 12) is 5.39 from B, its nearest town, farther than either vertex.
The best site
Of all ten candidates, the largest distance to the nearest town is about 6.01, at , where the edge between C and D meets the east side of the region. That is where the dump goes. The circle centered there with radius 6.01 passes through C and D and holds no town inside it.
Testing the vertices alone gives (7, 7) and 5. Testing the vertices and the corners gives 5.39. Only the full list, with the points where the edges meet the border, finds 6.01.
W at , where the edge between C and D meets the border, is 6.01 from C and 6.01 from D: the best site for the dump.
The usual mistakes
Measuring to the farthest town. From (4, 4), D is 9.22 away, but the dump is limited by its nearest town, 3.61 away.
Giving the diameter of the empty circle. The distance to the nearest town is the radius.
Stopping at the vertices. Here a corner and a point on the border are both farther from their nearest towns than either vertex.
Measuring a corner to the wrong town. (12, 0) is from A and from D, but its nearest town is C, at .
Landfills and fireworks
In the first application below, a landfill site among three towns is found at a corner of the county, after the vertex and the edges’ ends on the border are compared. In the second, a fireworks depot is placed among four villages, and the search is run again when a new village is planned.
Worked example: A Landfill Site in a County with Three Towns: the Point Equally Far from All Three, and the Point Farthest from Every Town
Question A county is the rectangle 0 ≤ x ≤ 18, 0 ≤ y ≤ 14, in kilometers, with three towns: A at (4, 4), B at (12, 4) and C at (8, 12). The county wants a site for a landfill as far as possible from the nearest town, by straight-line distance. (a) Find the point equally far from all three towns, and that distance. (b) Find the point of the county that is farthest from its nearest town, and that distance.
1.The point equally far from A and B is on their perpendicular bisector, x = 8. For A and C, the midpoint of AC is (6, 8) and AC has gradient 2, so the bisector is y − 8 = −12(x − 6), which is x + 2y = 22.
The bisectors of A and B, x = 8, and of A and C, x + 2y = 22. 2.(a) At x = 8, 2y = 14 and y = 7. The point (8, 7) is √42 + 32 = 5 km from A, from B and from C.
(a) They meet at (8, 7), 5 km from each town. 3.The edge between A and B, x = 8, meets the south boundary at (8, 0), which is √32 ≈ 5.66 km from A and from B. The edge between A and C meets the west boundary x = 0 at (0, 11), which is √65 ≈ 8.06 km from A and from C.
The edges from (8, 7) meet the boundary at (8, 0) and (0, 11). 4.The edge between B and C: the midpoint of BC is (10, 8) and BC has gradient −2, so the bisector is y − 8 = 12(x − 10), which is x − 2y = −6. It meets the east boundary x = 18 at (18, 12), which is √62 + 82 = 10 km from B and from C.
The edge between B and C meets the east boundary at (18, 12), 10 km from B and C. 5.The corners: (0, 0) is √32 km from A, its nearest town; (18, 0) is √52 km from B; (0, 14) is √68 km from C; and (18, 14) is √102 + 22 = √104 km from C, which is nearer to it than B at √136 km.
Each corner is measured to its nearest town. 6.(b) The largest of these is √104 = 2√26 ≈ 10.2 km, at the corner (18, 14). It beats the 10 km at (18, 12) and is about twice the 5 km at the vertex.
(b) The corner (18, 14) is farthest: √104 = 2√26 ≈ 10.2 km from C.
Answer: (a) (8, 7), 5 km from each town. (b) The corner (18, 14), 2√26 ≈ 10.2 km from C, its nearest town
Common mistakes
- Taking the vertex (8, 7) as the answer to (b). It is only 5 km from each town; the corners of the county and the points where edges meet the boundary must be compared too, and the corner (18, 14) is about 10.2 km from its nearest town.
- Measuring a corner's distance to the wrong town. (18, 14) is √136 km from B, but its nearest town is C, at √104 km, and the nearest town is the one that counts.
Worked example: A Fireworks Storage Depot in a District with Four Villages, and the Best Site Again After a New Village Is Planned
Question A district is the rectangle 0 ≤ x ≤ 16, 0 ≤ y ≤ 12, in kilometers, with four villages: A at (1, 1), B at (13, 1), C at (4, 10) and D at (13, 10). A fireworks storage depot is to be built as far as possible from the nearest village, by straight-line distance. (a) Find the site in the district that is farthest from its nearest village, and that distance. (b) Before building starts, a new village N is planned at (7, 10). Find the new best site and its distance from the nearest village.
1.The vertex for A, B and C: equally far from A and B means x = 7. Equally far from A and C means (x − 1)2 + (y − 1)2 = (x − 4)2 + (y − 10)2, which simplifies to x + 3y = 19. At x = 7, y = 4: the point (7, 4) is √62 + 32 = √45 km from A, B and C, and D is farther, at √72 km.
The vertex for A, B and C is (7, 4), √45 km from each of them. 2.The vertex for B, C and D: equally far from B and D means y = 5.5, and equally far from C and D means x = 8.5. The point (8.5, 5.5) is √4.52 + 4.52 = √40.5 ≈ 6.36 km from B, C and D, and A is farther.
The vertex for B, C and D is (8.5, 5.5), about 6.36 km from each of them. 3.On the boundary, the edge between A and B, x = 7, meets the south side at (7, 0), which is √37 ≈ 6.08 km from A and B. The other edges meet the boundary at (0, 193), (16, 5.5) and (8.5, 12), each less than 5.5 km from its nearest village, and every corner is within 4.5 km of a village.
On the boundary, the best candidate is (7, 0), about 6.08 km from A and B. 4.(a) The largest distance is at the vertex (7, 4): √45 = 3√5 ≈ 6.71 km from A, B and C.
(a) The farthest site is (7, 4), 3√5 ≈ 6.71 km from A, B and C. 5.N at (7, 10) is only 6 km from (7, 4), so that site is now 6 km from its nearest village. The new vertex for A, B and N is on x = 7 and equally far from A and N: 62 + (y − 1)2 = (y − 10)2, so 37 − 2y = 100 − 20y, 18y = 63 and y = 3.5. The point (7, 3.5) is √62 + 2.52 = 6.5 km from A, B and N, and C and D are farther.
N is only 6 km from (7, 4). The new vertex for A, B and N is (7, 3.5). 6.(b) The other new vertices are nearer a village: (5.5, 4.5), for A, C and N, is about 5.70 km from them, and (10, 5.5), for B, D and N, about 5.41 km. The edges round N meet the north boundary at (5.5, 12) and (10, 12), only 2.5 km and about 3.61 km from N, and (7, 0) stays at 6.08 km. The new best site is (7, 3.5), 6.5 km from its nearest villages, A, B and N.
(b) The new best site is (7, 3.5), 6.5 km from A, B and N.
Answer: (a) (7, 4), 3√5 ≈ 6.71 km from A, B and C. (b) (7, 3.5), 6.5 km from A, B and N
Common mistakes
- Stopping at the first vertex found. (8.5, 5.5) is also a vertex, and (7, 0) on the boundary is over 6 km from A and B; only a comparison of every candidate shows that (7, 4) is the farthest.
- Keeping (7, 4) after N is planned because it is still √45 km from A, B and C. Its nearest village is now N, only 6 km away, so the candidates must be worked out again with N included.