Convex Hull in O(n) time if each coordinate of each point is a rational number
Show that the convex hull of n points in the plane can be computed in O(n) time if each coordinate of each point is a rational number of the form p/q , with bounded values for p and q. Note: This is a homework problem. I can just think of using Jarvis March by somehow avoiding the scan of all points. Maybe this can be done by throwing rays in fixed directions (using the rational condition) to check where the next point exists . Don't use Jarvis March since it has time complexity of O(nh) . In the worst case, h may be as large as n . Note that h is the number of points on the hull. Instead, you