Closest Pair of Points in the Plane
Inge Li Gørtz
Thank you to Kevin Wayne for inspiration to slides. The slides on the deterministic algorithm for finding the closest pair of points is a modification of slides made by Kevin.
- Closest pair of points. Given n points in the plane, find a pair with smallest
euclidean distance between them.
Closest Pair of Points
Thank you to Kevin Wayne for inspiration to slides.
- Closest pair of points. Given n points in the plane, find a pair with smallest euclidean
distance between them.
- Fundamental geometric primitive.
- Graphics, computer vision, geographic information systems, molecular modeling,
air traffic control.
- Special case of nearest neighbor, Euclidean MST, Voronoi diagrams.
- Brute force. Compare all pairs => O(n2) time.
- 1-D version. Sort and scan => O(n log n) time.
- Simplifying assumption. No two points coincide (for a simpler presentation).
Closest Pair of Points
Thank you to Kevin Wayne for inspiration to slides.
Closest pair of points
A divide-and-conquer algorithm
Thank you to Kevin Wayne for inspiration to slides. The slides on the deterministic algorithm for finding the closest pair of points is a modification of the slides made by Kevin.