O'Rourke Chapter 7: Search & Intersection in PDF - Computer Science
O'Rourke Chapter 7: Search & Intersection in PDF - Computer Science
O'Rourke Chapter 7: Search & Intersection in PDF - Computer Science
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Stabb<strong>in</strong>g a Convex Polygon<br />
source: O’Rourke<br />
Extreme-F<strong>in</strong>d<strong>in</strong>g algorithm can stab a convex polygon<br />
extreme <strong>in</strong> + u direction<br />
a<br />
+u<br />
y<br />
L<br />
x<br />
b<br />
extreme <strong>in</strong> - u direction<br />
If a and b straddle L,<br />
b<strong>in</strong>ary search on [a,b] yields x<br />
b<strong>in</strong>ary search on [b,a] yields y<br />
O(lg n)