Given a set Q of points in the plane, we define the convex layers of Q inductively.

Question:

Given a set Q of points in the plane, we define the convex layers of Q inductively. The first convex layer of Q consists of those points in Q that are vertices of CH (Q). For i > 1, define Qi to consist of the points of Q with all points in convex layers 1, 2, . . . , i − 1 removed. Then, the i th convex layer of Q is CH (Qi) if Qi ≠ ∅ and is undefined otherwise.

a. Give an O(n2)-time algorithm to find the convex layers of a set of n points.

b. Prove that Ω(n lg n) time is required to compute the convex layers of a set of n points with any model of computation that requires Ω(n lg n) time to sort n real numbers.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Introduction to Algorithms

ISBN: 978-0262033848

3rd edition

Authors: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest

Question Posted: