Quote:
Originally posted by namgor:
Assume you are given the black box ConvexHull. The black box takes as input a list of n coordinates in the plane. The black box then computes the convex hull of these points, and returns a list of the vertices of the convex hull in clockwise order starting at an arbitrary vertex.
Use the ConvexHull black box to design an algorithm that sorts a list of n distinct integers. Provide pseudocode for your algorithm, and a brief argument that your explanation is correct.