Computational Geometry: Convex Hull (Graham Scan / QuickHull)

Computes the smallest convex polygon containing a set of points.

Method

Graham scan sorts by polar angle and maintains a stack; QuickHull recursively finds extreme points.

Applications

Civil engineering (terrain envelopes), GIS, defense (target enclosure), collision detection.

Advantages

O(n log n); fundamental geometric primitive.

Limitations

Must handle collinear/duplicate points; high-dimensional convex hulls explode in complexity. Robustness on degenerate inputs; infeasible in high dimensions.

Alternatives

Chan's algorithm, incremental construction, gift wrapping.

Editorial clarification

Source description reviewed against the method-specific reference. Volume ordering is editorial, not a measured ranking; advantages are conditional rather than benchmark results.

Sources

Educational reference only, not professional advice.

All algorithms