Question: Write a program that implements Grahams algorithm for computing the convex hull of a set of points S in the plane. Your algorithm should take

Write a program that implements Grahams algorithm for computing the convex hull of a set of points S in the plane. Your algorithm should take as input the coordinates of the points in S (following the format in the input files on D2L), and should output the coordinates of the points on the convex hull of S. You can assume that the points in S are distinct. For sorting the points, you need to code an O(n lg n)-time sorting algorithm. You should use Python. Please test your code on the test files that are uploaded on D2L (in the same folder as the assignment), and compare them to the posted solutions. in python

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!