M
Math Coach Amy
Amy Ferguson Moncure

IB AI · 14B Voronoi Diagrams

The Boundary between Two Sites

The Voronoi edge between two sites is their perpendicular bisector. It passes through the midpoint and is perpendicular to the segment that joins the sites.

Jump to section:

Perpendicular bisector. Through the midpoint.

What to Remember

Midpoint

Average the coordinates.

Perpendicular

The boundary slope is the negative reciprocal of the segment slope.

Horizontal

A horizontal segment has a vertical boundary.

Vertical

A vertical segment has a horizontal boundary.

Easy

Easy

A diagonal segment.

Example
Sites are at (1, 2) and (5, 4). Find the equation of the boundary that is equidistant from the two sites.

The boundary is the perpendicular bisector.

midpoint = (3, 3)

slope of the segment = 4 − 25 − 1 = 12

perpendicular slope = −2

y − 3 = −2(x − 3)

y = −2x + 9

Answer: y = −2x + 9

1
Sites are at (0, 0) and (4, 2). Find the equation of the boundary that is equidistant from the two sites.
Show Answer

The boundary is the perpendicular bisector.

midpoint = (2, 1)

slope of the segment = 2 − 04 − 0 = 12

perpendicular slope = −2

y − 1 = −2(x − 2)

y = −2x + 5

Answer: y = −2x + 5

2
Sites are at (1, 1) and (5, 3). Find the equation of the boundary that is equidistant from the two sites.
Show Answer

The boundary is the perpendicular bisector.

midpoint = (3, 2)

slope of the segment = 3 − 15 − 1 = 12

perpendicular slope = −2

y − 2 = −2(x − 3)

y = −2x + 8

Answer: y = −2x + 8

3
Sites are at (0, 2) and (6, 4). Find the equation of the boundary that is equidistant from the two sites.
Show Answer

The boundary is the perpendicular bisector.

midpoint = (3, 3)

slope of the segment = 4 − 26 − 0 = 13

perpendicular slope = −3

y − 3 = −3(x − 3)

y = −3x + 12

Answer: y = −3x + 12

4
Sites are at (2, 1) and (6, 5). Find the equation of the boundary that is equidistant from the two sites.
Show Answer

The boundary is the perpendicular bisector.

midpoint = (4, 3)

slope of the segment = 5 − 16 − 2 = 1

perpendicular slope = −1

y − 3 = −1(x − 4)

y = −x + 7

Answer: y = −x + 7

5
Sites are at (1, 0) and (3, 4). Find the equation of the boundary that is equidistant from the two sites.
Show Answer

The boundary is the perpendicular bisector.

midpoint = (2, 2)

slope of the segment = 4 − 03 − 1 = 2

perpendicular slope = −12

y − 2 = −12(x − 2)

y = −12x + 3

Answer: y = −12x + 3

Medium

Medium

A negative reciprocal that is a fraction.

Example
Sites are at (0, 0) and (4, 2). Find the equation of the boundary that is equidistant from the two sites.

The boundary is the perpendicular bisector.

midpoint = (2, 1)

slope of the segment = 2 − 04 − 0 = 12

perpendicular slope = −2

y − 1 = −2(x − 2)

y = −2x + 5

Answer: y = −2x + 5

1
Sites are at (1, 3) and (5, 1). Find the equation of the boundary that is equidistant from the two sites.
Show Answer

The boundary is the perpendicular bisector.

midpoint = (3, 2)

slope of the segment = 1 − 35 − 1 = −12

perpendicular slope = 2

y − 2 = 2(x − 3)

y = 2x − 4

Answer: y = 2x − 4

2
Sites are at (0, 1) and (2, 5). Find the equation of the boundary that is equidistant from the two sites.
Show Answer

The boundary is the perpendicular bisector.

midpoint = (1, 3)

slope of the segment = 5 − 12 − 0 = 2

perpendicular slope = −12

y − 3 = −12(x − 1)

y = −12x + 72

Answer: y = −12x + 72

3
Sites are at (2, 0) and (6, 2). Find the equation of the boundary that is equidistant from the two sites.
Show Answer

The boundary is the perpendicular bisector.

midpoint = (4, 1)

slope of the segment = 2 − 06 − 2 = 12

perpendicular slope = −2

y − 1 = −2(x − 4)

y = −2x + 9

Answer: y = −2x + 9

4
Sites are at (−2, 1) and (2, 3). Find the equation of the boundary that is equidistant from the two sites.
Show Answer

The boundary is the perpendicular bisector.

midpoint = (0, 2)

slope of the segment = 3 − 12 + 2 = 12

perpendicular slope = −2

y − 2 = −2(x − 0)

y = −2x + 2

Answer: y = −2x + 2

5
Sites are at (0, 4) and (6, 1). Find the equation of the boundary that is equidistant from the two sites.
Show Answer

The boundary is the perpendicular bisector.

midpoint = (3, 52)

slope of the segment = 1 − 46 − 0 = −12

perpendicular slope = 2

y − 52 = 2(x − 3)

y = 2x − 72

Answer: y = 2x − 72

Hard

Hard

A horizontal or vertical segment.

Example
Sites are at (1, 2) and (7, 2). Find the equation of the boundary that is equidistant from the two sites.

The boundary is the perpendicular bisector.

midpoint = (4, 2)

The sites have the same y-coordinate, so the segment is horizontal and the boundary is vertical.

x = 4

Answer: x = 4

1
Sites are at (0, 1) and (0, 7). Find the equation of the boundary that is equidistant from the two sites.
Show Answer

The boundary is the perpendicular bisector.

midpoint = (0, 4)

The sites have the same x-coordinate, so the segment is vertical and the boundary is horizontal.

y = 4

Answer: y = 4

2
Sites are at (3, 1) and (3, 9). Find the equation of the boundary that is equidistant from the two sites.
Show Answer

The boundary is the perpendicular bisector.

midpoint = (3, 5)

The sites have the same x-coordinate, so the segment is vertical and the boundary is horizontal.

y = 5

Answer: y = 5

3
Sites are at (−2, 4) and (6, 4). Find the equation of the boundary that is equidistant from the two sites.
Show Answer

The boundary is the perpendicular bisector.

midpoint = (2, 4)

The sites have the same y-coordinate, so the segment is horizontal and the boundary is vertical.

x = 2

Answer: x = 2

4
Sites are at (4, −1) and (4, 5). Find the equation of the boundary that is equidistant from the two sites.
Show Answer

The boundary is the perpendicular bisector.

midpoint = (4, 2)

The sites have the same x-coordinate, so the segment is vertical and the boundary is horizontal.

y = 2

Answer: y = 2

5
Sites are at (1, 3) and (9, 3). Find the equation of the boundary that is equidistant from the two sites.
Show Answer

The boundary is the perpendicular bisector.

midpoint = (5, 3)

The sites have the same y-coordinate, so the segment is horizontal and the boundary is vertical.

x = 5

Answer: x = 5

Want to go over a Voronoi diagram together?

Book a Session with Amy