Question: Write a program implementing the brute-force algorithm for the convex-hull problem. Begin with the bottom-most point and specify the points in counter-clockwise order. In implementing
Write a program implementing the brute-force algorithm for the convex-hull problem. Begin with the bottom-most point and specify the points in counter-clockwise order. In implementing your program, read in the input as shown (the first line is the number of points N, and the remaining N lines contain the X and Y coordinates of point P). Assume all coordinates are integers:
SAMPLE INPUT:
6 4 17 4 14 7 15 5 13 2 10 5 7
Your output will consist of a M lines, where M is the number of convex hull points, in the format shown:
SAMPLE OUTPUT:
(5, 7) (7, 15) (4, 17) (2, 10)
Java code please!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
