07.01.2015 Views

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

SHOW MORE
SHOW LESS

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)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!