Convex Hull: Extreme Point Algorithm
the really bad algorithm: quartic order
The extreme point algorithm has to be among one of the worst, in terms of efficiency. It has quartic order (that is, O(N4)), which means that the algorithm will run 10,000 times longer for only ten times as many points. Nonetheless, these movies show clearly how much thrashing goes on in a really inefficient algorithm.
The idea is simple: for each point, see if that point lies within a triangle formed using all possible combinations of three other points. If it does, then it must lie within the convex hull; if it does not, then it lies on the perimeter of the convex hull, and must therefore be a vertex of the convex hull. The algorithm identifies the vertices of the convex hull, but it does not connect them in either clockwise or counterclockwise order.
Movies
The algorithm is so inefficient that even the formation of the convex hull of relatively few points makes a long movie. Two movies with eight points and two with sixteen are available. One of the eight-point movies also includes pauses at important events in the algorithm at which a question is posed to the student.
Remember the guidelines for use of these movies.
|
|
|
|
|
|



