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 . 回答1: Don't use Jarvis March since it has time complexity of O(nh)