Skip to main content
Log in

Reporting Red—Blue Intersections between Two Sets of Connected Line Segments

  • Published:
Algorithmica Aims and scope Submit manuscript

Abstract. We present a new line sweep algorithm, HEAPSWEEP, for reporting bichromatic (``purple'') intersections between a red and a blue family of line segments. If the union of the segments in each family is connected as a point set, HEAPSWEEP reports all k purple intersections in time O((n+k) α(n) log3 n) , where n is the total number of input segments and α(n) is the nearly constant inverse Ackermann function. To achieve these bounds, the algorithm maintains only partial information about the vertical ordering between curves of the same color, using a new data structure called a kinetic queue . In order to analyze the running time of HEAPSWEEP, we also show that a simple polygon containing a set of n line segments can be partitioned into monotone regions by a set of vertical threads cutting these segments O(n log n) times.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Julien Basch, ., Leonidas J. Guibas, . & Ramkumar, . Reporting Red—Blue Intersections between Two Sets of Connected Line Segments . Algorithmica 35, 1–20 (2003). https://doi.org/10.1007/s00453-002-0967-4

Download citation

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00453-002-0967-4

Navigation