Write a program that implements Graham’s algorithm for computing the convex hull
ID: 3714862 • Letter: W
Question
Write a program that implements Graham’s 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 can use any of the standard programming languages, such as C, Java, or 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.
Explanation / Answer
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.