CS133
Computational Geometry
Convex Hull
4/12/2018 1
CS133 Computational Geometry Convex Hull 4/12/2018 1 Convex Hull - - PowerPoint PPT Presentation
CS133 Computational Geometry Convex Hull 4/12/2018 1 Convex Hull Given a set of n points, find the minimal convex polygon that contains all the points 4/12/2018 2 Convex Hull Properties 4/12/2018 3 Convex Hull Representation The
4/12/2018 1
4/12/2018 2
4/12/2018 3
4/12/2018 4
4/12/2018 5
4/12/2018 6
4/12/2018 7
4/12/2018 8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
4/12/2018 9
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
4/12/2018 10
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
4/12/2018 11
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
4/12/2018 12
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
4/12/2018 13
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
4/12/2018 14
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
4/12/2018 15
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
4/12/2018 16
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
4/12/2018 17
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
4/12/2018 18
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
4/12/2018 19
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
4/12/2018 20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
4/12/2018 21
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
4/12/2018 22
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
4/12/2018 23
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
4/12/2018 24
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
4/12/2018 25
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
4/12/2018 26
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
4/12/2018 27
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
4/12/2018 28
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
4/12/2018 29
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
4/12/2018 30
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
4/12/2018 31
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
4/12/2018 32
S.pop
4/12/2018 33
4/17/2018 34
4/17/2018 35
U.pop
L.pop
4/17/2018 36
4/17/2018 37
4/17/2018 38
4/17/2018 39
4/17/2018 40
4/17/2018 41
4/17/2018 42
4/17/2018 43
4/17/2018 44
4/17/2018 45
4/17/2018 46
Start point = CH.last End point = CH[0] For each point s β S
If Start point = End Point OR s is to the left of ππ’ππ π’ πππππ’, πΉππ πππππ’ End point = s
CH << End point
4/17/2018 47
4/17/2018 48
4/17/2018 49
4/17/2018 50
4/17/2018 51
4/17/2018 52
4/17/2018 53
4/17/2018 54
4/17/2018 55
4/17/2018 56
4/17/2018 57
Done = true While Pi+1 is to the right of ππππ
i++; done = false
While Pj-1 is to the left of ππππ
j--; done = false
4/17/2018 58
4/17/2018 59
4/19/2018 60
4/19/2018 61
4/19/2018 62
4/19/2018 63
4/19/2018 64
4/19/2018 65
4/19/2018 66
4/19/2018 67
4/19/2018 68
How to split the points across the line segment?
4/19/2018 69
How to select the farthest point?
4/19/2018 70
4/19/2018 71
4/19/2018 72
How to split the points into three subsets?
4/19/2018 73
4/19/2018 74
4/19/2018 75
4/19/2018 76
4/19/2018 77
4/19/2018 78
4/19/2018 79
4/19/2018 80
π π = π π2
In this case, most of the points are pruned π π = π π
π π = π π log π
4/19/2018 81