Convex Hull Algorithm - Graham Scan and Jarvis March tutorial
3-Second Blueprint (English)
- A 2D convex hull encloses a point set within the minimum-perimeter polygon by selecting extreme peripheral vertices.
- Graham Scan sorts points by polar angle from the lowest-Y anchor in O(n log n) time and pops clockwise turns off a stack.
- Jarvis March wraps the hull iteratively via cross-product orientation tests, handling collinear points by max Euclidean distance.
Graham ScanJarvis March2D Cross ProductMonotonic Stack
3-Sekunden-Fazit (Deutsch)
- Eine konvexe 2D-Hülle umschließt alle Punkte einer Menge mit minimalem Umfang durch Auswahl der äußersten Randknoten.
- Graham Scan sortiert Punkte nach Polarwinkel vom tiefsten Y-Anker in O(n log n) und entfernt Rechtskurven per Stack.
- Jarvis March umwickelt die Punktmenge schrittweise per Kreuzprodukt-Test und löst Kollinearität über die größte Distanz.
Graham-ScanJarvis-March2D-KreuzproduktStack-Backtracking
Note / Hinweis: Blueprints are AI-generated educational summaries (0% Politics · 0% Religion · 0% Brainrot) and do not constitute medical, legal, or financial advice. / KI-generierte Zusammenfassung zu Bildungszwecken – ersetzt keine medizinische, rechtliche oder finanzielle Fachberatung.