The Jarvis march, also called the gift wrapping algorithm, computes the convex hull of a set of points in the plane by starting from the leftmost point and repeatedly selecting the next point such that every other point lies to one side of the line formed, wrapping around the point set like a gift being wrapped until it returns to the starting point. Its running time is O(nh), where n is the number of points and h is the number of points on the hull, making it efficient when the hull has few vertices but slow when most points lie on the hull. It is one of the earliest convex hull algorithms, described by R. A. Jarvis in 1973.
Facts
Time ComplexityO(nh), where n is the number of points and h is the number of points on the hull 2 Time Complexity
Time Complexity (category)Quadratic Time -- O(n^2) 1 Connections
In Field
Source Wikipedia: Gift wrapping algorithm
Sources
1. Jarvis March Algorithm (Wikipedia)
Wikipedia infobox: time complexity quadraticQuote, Wikipedia infobox: time complexity quadratic
quadratic
View the Source 2. Wikipedia: Gift wrapping algorithm
Planar case
O(nh) time complexity, where n is the number of points and h is the number of points on the convex hull.
Planar case, naming
In the two-dimensional case the algorithm is also known as Jarvis march, after R. A. Jarvis, who published it in 1973
- In Field: Algorithms and Complexity Theory, Lead paragraph
View the SourceReader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.
Sign in to dispute this or suggest a correction.