|
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| • |
Given
a set of line segments
|
|
|
in
the plane, report all
|
|
|
|
intersections
|
|
|
| • |
Obvious
method:
|
|
|
|
– |
Try
each pair of segments
|
|
|
|
– |
Running time = O(n2)
|
|
|
|
|
| • |
If
there are a lot of
|
|
|
|
intersections
then this is the
|
|
|
|
best
we can do, but what if
|
|
|
|
there
are few intersections?
|
|
|
|