Andrew's Monotone Chain Convex Hull Algorithm

From GM-RKB
Jump to navigation Jump to search

An Andrew's Monotone Chain Convex Hull Algorithm is a Convex Hull Algorithm that constructs the convex hull of a set of 2-dimensional points in [math]\displaystyle{ O(n \log n) }[/math] time.



References

2020

  • (Wikibooks, 2020) ⇒ https://en.wikibooks.org/wiki/Algorithm_Implementation/Geometry/Convex_hull/Monotone_chain Retrieved:2020-3-29.
    • QUOTE: Andrew's monotone chain convex hull algorithm constructs the convex hull of a set of 2-dimensional points in [math]\displaystyle{ O(n \log n) }[/math] time.

      It does so by first sorting the points lexicographically (first by x-coordinate, and in case of a tie, by y-coordinate), and then constructing upper and lower hulls of the points in [math]\displaystyle{ O(n) }[/math] time.

      An upper hull is the part of the convex hull, which is visible from the above. It runs from its rightmost point to the leftmost point in counterclockwise order. Lower hull is the remaining part of the convex hull.

Animation depicting the Monotone convex hull algorithm Upper and lowers hulls of a set of points