33-1 Convex layers

Given a set QQ of points in the plane, we define the convex layers of QQ inductively. The first convex layer of QQ consists of those points in QQ that are vertices of CH(Q)\text{CH}(Q). For i>1i > 1, define QiQ_i to consist of the points of QQ with all points in convex layers i,2,,i1i, 2, \dots, i - 1 removed. Then, the iith convex layer of QQ is CH(Qi)\text{CH}(Q_i) if QiQ_i \ne \emptyset and is undefined otherwise.

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

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

(Omit!)