Please Answer these question within 1500-2000words ... send me with pdf/docs/text file Description 1. In class we covered Graham’s algorithm to find the convex hull of points in 2D. The first step is to sort the points radially around a central point so we have a simple polygon p1, p2, . . . , pn. The second step is to process this polygon in linear time, by repeatedly removing the second last point in the path if it is reflex. (Details can be found in the class slides, or on the internet.) Does the second step work to find the convex hull of any simple polygon in linear time? Prove your answer. 2. Give a polynomial time algorithm that takes a simple polygon P as input and finds, if it exists, a triangulation of P whose dual is a path. Justify correctness, and analyze the runtime of your algorithm.
Please Answer these question within 1500-2000words ... send me with pdf/docs/text file
Description
1. In class we covered Graham’s
2. Give a polynomial time algorithm that takes a simple polygon P as input and finds, if it exists, a triangulation of P whose dual is a path. Justify correctness, and analyze the runtime of your algorithm.
Step by step
Solved in 6 steps with 1 images