Convex Hull Algorithms

preview_player
Показать описание
This video is about algorithms for computing the convex hull of points in 2D. Specifically, we consider the following algorithms:
- a slow (cubic-time) algorithm,
- Graham scan (O(n log n) time),
- the giftwrapping algorithm (O(n*h) time, where h is the number of points on the hull), and
- Chan's algorithm (O(n log h) time).

Next to talking about convex hull algorithms, this video also serves as a first introduction to geometric algorithm design.

To interact with the notebook open it in Binder (the 3 rings at the top right corner).

00:00 introduction and definitions
03:28 the convex hull problem
07:15 designing geometric algorithms
09:43 slow algorithm
11:57 Graham scan
16:48 Graham scan: correctness
18:17 Graham scan: running time analysis
24:34 giftwrapping algorithm
26:54 giftwrapping: correctness
29:00 Chan's algorithm
37:05 Summary and Discussion
Рекомендации по теме
Комментарии
Автор

Excellent video, really well explained, with clear examples. Thank you.

DanielWood
Автор

hey this is an emergency i need some kind of code for a problem like you have given points in a 2d space and you have to find the minimum number of points to make a structure that if the points freefall downwards then you can catch them in that structure that no point fall on ground

No_one_is_here
Автор

Im struggling to understand why m is limited to n since it does not seem to make a difference in functionality or (what I understood) runningtime.
(Same amount of partitions for m=n as for m>n and the algorithm terminates after finding at most n Hull points anyway)
Could you provide some example how m > n could bring drawbacks?

miauuuauLP
Автор

Given the CCW ordering of a simple polygon with N points, is possible to compute its convex hull in O(N)..

eddJomsAntony
Автор

While I was looking at the timings of Convex Hull computation times using the monoton chain algorithm on a lexicographically sorted integer points in an intel Xeon 2.40 GHz × 32 machine, I observed that for the time taken for 1000 points, 10000 and points are all very close, Is this OK?

jomsantony
Автор

for Graham scan we need to reverse the order of P and then compute the lower hull too right?

kokala
Автор

Are there applications where the input point set consists of millions of points. Will it be worth exploring GPU accelerated methods for finding the convex hull of such input sets

jomsantony
Автор

Given the convex hull of a set of points Is it possible to come up with its Delaunay triangulation with less than nlogn time

jomsantony