Segment Intersection Detection (Bentley-Ottmann)
Reports all k intersections among n line segments in O((n+k) log n) time.
Method
Sweep line plus event queue; maintain an ordered status of active segments; detect intersections when adjacent segments swap.
Applications
GIS (road networks), CAD, robot motion planning, defense (trajectory crossing).
Advantages
Output-sensitive; subquadratic.
Limitations
Complex implementation; degenerate cases (overlaps, endpoints) are cumbersome. High engineering difficulty.
Alternatives
Naive O(n^2), spatial partitioning, simplified sweep line.
Editorial clarification
Source description reviewed against the method-specific reference. Volume ordering is editorial, not a measured ranking; advantages are conditional rather than benchmark results.
Sources
Educational reference only, not professional advice.
All algorithms