ICPC SWERC Training
Session 7: Geometry
Representing 2D points?
Attention!
Returns type T
Question 1. Define dot and cross with complex numbers?
Primitives in 2D geometry
Read chapter 2 of:
Sweep line algorithms
Is there an intersection between segments?
Which are the two closest points?
Convex hull algorithms
Graham scan
Andrew's monotone chain algorithm
Quizz
Question 2. How to compute:
Operation on (convex) polygons
Advanced topic: Voronoi and Delaunay
Voronoi diagram (in red): the Voronoi cell of a seed s is the polygon containing all points which are closer to s than to any other seed.
Delaunay triangulation (black edges): a Delaunay triangle is such that its circumcircle does not contain any seed.
Given a set of (black) points, called seeds, we define the Voronoi diagram and Delaunay triangulation.