
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Consider the problem of computing the convex hull of a set of points in the plane that have been drawn according to some known random distribution. Sometimes, the number of points, or size, of the convex hull of n points drawn from such a distribution has expectation O(n^1 −) for some constant > 0. We call such a distribution sparse-hulled. Sparse-hulled distributions include the following:
lg n) expected size.
(a) Given two convex polygons with n 1 and n 2 vertices respectively, show how to compute the convex hull of all n 1 + n 2 points in O(n 1 + n 2 ) time. (The polygons may overlap.) (b) Show that the convex hull of a set of n points drawn independently according to a sparse- hulled distribution can be computed in O(n) expected time. (Hint: Recursively find the convex hulls of the first n/2 points and the second n/2 points, and then combine the results.)
(a) Similar to part (a) of the previous problem, given k convex polygons, not necessarily disjoint, with overall n vertices, show how to compute their convex hull in O(kh + n) time, where h is the number of vertices in the convex hull. (b) Given a n points on the plane, show how to compute their convex hull in O(n log g) time, assuming you know a priori the number g of vertices on the convex hull. (c) Assume you have a solution to part(b). We can combine that with superexponential search to get another convex hull algorithm. Let g = 2^2 0 , 22 1 , 22 2 ,.. ., in turn. Run the algorithm from part (b), but for at most cn log g steps. (c is a constant which is large enough for the algorithm to terminate when g ≥ h. Its value and how to find such a c are not our present concern.) If a convex hull was found, return it, otherwise proceed with the next larger value of g. This algorithm is correct, since a large enough g guarantees success. What is its asymp- totic running time?