Computational Geometry 2D Convex Hulls continued - PowerPoint PPT Presentation

1 / 6
About This Presentation
Title:

Computational Geometry 2D Convex Hulls continued

Description:

2 Ideas: Break point set S into groups of appropriate size ... Gift-wrap the n/m hulls to get overall CH: At each gift-wrap step, when pivoting around vertex v ... – PowerPoint PPT presentation

Number of Views:82
Avg rating:3.0/5.0
Slides: 7
Provided by: S698
Category:

less

Transcript and Presenter's Notes

Title: Computational Geometry 2D Convex Hulls continued


1
Computational Geometry2D Convex Hulls
(continued)
Joseph S. B. Mitchell Stony Brook University
2
Output-Sensitive O(n log h)
  • The ultimate convex hull (in 2D)
  • Marriage before Conquest O(n log h)
  • Lower bound ?(n log h)
  • Kirkpatrick Seidel86
  • Simpler Chan95
  • 2 Ideas
  • Break point set S into groups of appropriate size
    m (ideally, m h)
  • Search for the right value of m ( h, which we
    do not know in advance) by repeated squaring

h output size
So, O(n log h) is BEST POSSIBLE, as function of n
and h !!
3
Chans Algorithm
  • Break S into n/m groups, each of size m
  • Find CH of each group (using, e.g., Graham scan)
  • O(m log m) per group, so total O((n/m) m log m)
    O(n log m)
  • Gift-wrap the n/m hulls to get overall CH
  • At each gift-wrap step, when pivoting around
    vertex v
  • find the tangency point (binary search, O(log
    m)) to each group CH
  • pick the smallest angle among the n/m tangencies
  • O( h (n/m) log m)
  • Hope mh
  • Try m 4, 16, 256, 65536,

O(n log h)
O( h (n/h) log h) O(n log h)
v
O(n ( log (221 ) log (222 ) log (223 )
log (22 log (log (h)) ) O(n (21 22 23
2log (log (h)) )) O(n (2 log h)) O(n log
h)
v
4
CH in Higher Dimensions
  • 3D Divide and conquer
  • T(n) ? 2T(n/2) O(n)
  • O(n log n)
  • Output-sensitive O(n log h) Chan
  • Higher dimensions (d ? 4)
  • O(n ?d/2 ? ), which is worst-case OPT, since
    point sets exist with h?(n ?d/2 ? )
  • Output-sensitive O((nh) logd-2 h), for d4,5

applet
merge
h O(n)
Qhull website
5
Algorithmic Paradigms
  • Divide and Conquer
  • Sweep (sorting helps!)
  • Binary search parametric search
  • Incremental construction
  • Randomized incremental (randomization helps!)
  • Greedy can be good
  • Dynamic programming
  • Approximation
  • ?-nets, discrepency theory, coresets, t-spanners,
    dimension-reduction, m-guillotine subdivisions
  • Combinatorial analysis, topological analysis

6
More Demos
  • Various 2D and 3D algorithms in an applet
Write a Comment
User Comments (0)
About PowerShow.com