AN OPTIMAL ALGORITHM FOR INTERSECTING LINE SEGMENTS IN THE PLANE

被引:174
作者
CHAZELLE, B [1 ]
EDELSBRUNNER, H [1 ]
机构
[1] UNIV ILLINOIS,URBANA,IL 61801
关键词
ALGORITHMS; THEORY;
D O I
10.1145/147508.147511
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
The main contribution of this work is an O(n log n + k)-time algorithm for computing all k intersections among n line segments in the plane. This time complexity is easily shown to be optimal. Within the same asymptotic cost, our algorithm can also construct the subdivision of the plane defined by the segments and compute which segment (if any) lies right above (or below) each intersection and each endpoint. The algorithm has been implemented and performs very well. The storage requirement is on the order of n + k in the worst case, but it is considerably lower in practice. To analyze the complexity of the algorithm, an amortization argument based on a new combinatorial theorem on line arrangements is used.
引用
收藏
页码:1 / 54
页数:54
相关论文
共 24 条