Skip to main content

Intersecting Red and Blue Line Segments in Optimal Time and Precision

  • Conference paper
  • First Online:
Discrete and Computational Geometry (JCDCG 2000)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 2098))

Included in the following conference series:

Abstract

A common geometric problem in computer graphics and geographic information systems is to compute the arrangement of a set of n segments that can be colored red and blue so that there are no red/red or blue/blue crossings. We give a sweep algorithm that uses the minimum arithmetic precision and runs in optimal O(n log n + k) time and O(n) space to output an arrangement with k vertices, or O(n log n) time to determine k. Our initial implementation in Java can be found at http://www.cs.unc.edu/~snoeyink/demos/rbseg.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Ivan J. Balaban. An optimal algorithm for finding segment intersections. In Proc. 11th Annu. ACM Sympos. Comput. Geom., pages 211–219, 1995.

    Google Scholar 

  2. U. Bartuschka, K. Mehlhorn, and S. Näher. A robust and efficient implementation of a sweep line algorithm for the straight line segment intersection problem. In Proc. Workshop on Algorithm Engineering, pages 124–135, 1997.

    Google Scholar 

  3. J. L. Bentley and T. A. Ottmann. Algorithms for reporting and counting geometric intersections. IEEE Trans. Comput., C-28(9):643–647, September 1979.

    Article  Google Scholar 

  4. J. F. Blinn. A trip down the graphics pipeline: Line clipping. IEEE Comput. Graph. Appl., 11(1):98–105, 1991.

    Article  Google Scholar 

  5. J.-D. Boissonnat and J. Snoeyink. Efficient algorithms for line and curve segment intersection using restricted predicates. In Proc. 15th Annu. ACM Sympos. Comput. Geom., pages 370–379, 1999.

    Google Scholar 

  6. Jean-Daniel Boissonnat and Franco P. Preparata. Robust plane sweep for intersecting segments. SIAM J. Comp., 29(5):1401–1421, 2000.

    Article  MATH  MathSciNet  Google Scholar 

  7. Andreas Brinkmann and Klaus Hinrichs. Implementing exact line segment intersection in map overlay. In Proc. 8th Intl. Symp. Spatial Data Handling, pages 569–579. International Geographical Union, 1998.

    Google Scholar 

  8. T. M. Chan. A simple trapezoid sweep algorithm for reporting red/blue segment intersections. In Proc. 6th Canad. Conf. Comput. Geom., pages 263–268, 1994.

    Google Scholar 

  9. Bernard Chazelle. Reporting and counting segment intersections. J. Comput. Syst. Sci., 32:156–182, 1986.

    Article  MATH  MathSciNet  Google Scholar 

  10. Bernard Chazelle and H. Edelsbrunner. An optimal algorithm for intersecting line segments in the plane. J. ACM, 39(1):1–54, 1992.

    Article  MATH  MathSciNet  Google Scholar 

  11. Bernard Chazelle, H. Edelsbrunner, Leonidas J. Guibas, and Micha Sharir. Algorithms for bichromatic line segment problems and polyhedral terrains. Algorithmica, 11:116–132, 1994.

    Article  MATH  MathSciNet  Google Scholar 

  12. Olivier Devillers and Andreas Fabri. Scalable algorithms for bichromatic line segment intersection problems on coarse grained multicomputers. Internat. J. Comput. Geom. Appl., 6:487–506, 1996.

    Article  MATH  MathSciNet  Google Scholar 

  13. J. R. Driscoll, N. Sarnak, D. D. Sleator, and R. E. Tarjan. Making data structures persistent. J. Comput. Syst. Sci., 38:86–124, 1989.

    Article  MATH  MathSciNet  Google Scholar 

  14. M. Goodrich, L. J. Guibas, J. Hershberger, and P. Tanenbaum. Snap rounding line segments efficiently in two and three dimensions. In Proc. 13th Annu. ACM Sympos. Comput. Geom., pages 284–293, 1997.

    Google Scholar 

  15. Michael T. Goodrich and Roberto Tamassia. Data Structures and Algorithms in Java. John Wiley & Sons, New York, NY, 1998.

    Google Scholar 

  16. Leonidas Guibas and David Marimont. Rounding arrangements dynamically. Internat. J. Comput. Geom. Appl., 8:157–176, 1998.

    Article  MATH  MathSciNet  Google Scholar 

  17. J. D. Hobby. Practical segment intersection with finite precision output. Comput. Geom. Theory Appl., 13(4):199–214, October 1999.

    MATH  MathSciNet  Google Scholar 

  18. H. G. Mairson and J. Stolfi. Reporting and counting intersections between two sets of line segments. In R. A. Earnshaw, editor, Theoretical Foundations of Computer Graphics and CAD, volume 40 of NATO ASI Series F, pages 307–325. Springer-Verlag, Berlin, West Germany, 1988.

    Google Scholar 

  19. Victor J. Milenkovic. Practical methods for set operations on polygons using exact arithmetic. In Proc. 7th Canad. Conf. Comput. Geom., pages 55–60, 1995.

    Google Scholar 

  20. D. M. Mount. Storing the subdivision of a polyhedral surface. Discrete Comput. Geom., 2:153–174, 1987.

    Article  MATH  MathSciNet  Google Scholar 

  21. L. Palazzi and J. Snoeyink. Counting and reporting red/blue segment intersections. CVGIP: Graph. Models Image Process., 56(4):304–311, 1994.

    Article  Google Scholar 

  22. D. D. Sleator and R. E. Tarjan. A data structure for dynamic trees. J. Comput. Syst. Sci., 26(3):362–381, 1983.

    Article  MATH  MathSciNet  Google Scholar 

  23. R. B. Tilove and A. A. G. Requicha. Closure of boolean operations on geometric entities. Comput. Aided Design, 12:219–220, 1980.

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2001 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Mantler, A., Snoeyink, J. (2001). Intersecting Red and Blue Line Segments in Optimal Time and Precision. In: Akiyama, J., Kano, M., Urabe, M. (eds) Discrete and Computational Geometry. JCDCG 2000. Lecture Notes in Computer Science, vol 2098. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-47738-1_23

Download citation

  • DOI: https://doi.org/10.1007/3-540-47738-1_23

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-42306-5

  • Online ISBN: 978-3-540-47738-9

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics