On vertical visibility in arrangements of segments and the queue size in the Bentley-Ottmann line sweeping algorithm

Janos Pach*, Micha Sharir

*Corresponding author for this work

Research output: Contribution to journalArticlepeer-review

28 Scopus citations

Abstract

Let S = {e1,..., en} be a collection of n (intersecting) line segments in the plane. Suppose that all segments have their right endpoints lying on the same vertical line, and that one wishes to bound the number of pairs of nonintersecting vertically visible segments that will intersect when extended to the right (ei, ej are vertically visible if there exists a vertical line segment connecting a point on ei to a point on ej and not meeting any other segment). It is shown that there are at most O(n log2n) such pairs, and only O(n log n) in the case of full rays, where the latter bound can be attained in the worst case. These results are applied to obtain similar upper and lower bounds on the maximum size of the queue in the original implementation of the Bentley-Ottman algorithm for reporting all intersections between the segments in S, i.e., the implementation where future events are not deleted from the queue. It is also shown that, without the extra conditions on the segments in S and on the pairs of segments to be counted, the number of nonintersecting vertically visible pairs of segments is O(n4/3(log n)2/3), and can be Ω(n4/3) in the worst case.

Original languageEnglish
Pages (from-to)460-470
Number of pages11
JournalSIAM Journal on Computing
Volume20
Issue number3
DOIs
StatePublished - 1991
Externally publishedYes

Fingerprint

Dive into the research topics of 'On vertical visibility in arrangements of segments and the queue size in the Bentley-Ottmann line sweeping algorithm'. Together they form a unique fingerprint.

Cite this