Voronoi Diagrams Flashcards
1
Q
What’s a Voronoi diagram?
A
A diagram that breaks up a space into regions closest to a set of points.
2
Q
How do you find the line that separates two sites?
A
It’s a perpendicular bisector.
- Find the midpoint of the two given points.
- Find the gradient between the two given points.
- Identify the gradient of the perpendicular bisector. (The negative reciprocal of what you found in step 2.)
- Substitute the gradient info into formula for a straight line.
- Next substitute your midpoint in for x and y and solve for b.
- Write the equation of the line in the form , but use your values for m and b.
3
Q
What is the significance of a cell?
A
Every point in the cell is closer to that site than any other site.
4
Q
How would you find the coordinates of A?
A
- Find the equation of the line that connects A and B.
- Find the intersection of this new line and the one given. (This will be the midpoint between A and B.)
- Use the x-coordinates from B and M in the midpoint formula to find the x-coordinate of A.
- Use the y-coordinates from B and M in the midpoint formula to find the y-coordinate of A.
5
Q
If you want to add another point to a Voronoi diagram that is “the furthest from all existing sites”, where should it go?
A
It should go at the vertex between the existing sites.
6
Q
What are the steps to find the equation between two sites?
A
- Find the midpoint between the two sites.
- Find the gradient connecting the sites
- Take the negative reciprocal to get the gradient of your line (m)
- Plug the x and y from your midpoint and the gradient into the y=mx+c formula to solve for c.
- Write the equation as y=mx+c (but m and c need to be numbers).