Algorithmica

, Volume 11, Issue 2, pp 116–132 | Cite as

Algorithms for bichromatic line-segment problems and polyhedral terrains

  • Bernard Chazelle
  • Herbert Edelsbrunner
  • Leonidas J. Guibas
  • Micha Sharir
Article

Abstract

We consider a variety of problems on the interaction between two sets of line segments in two and three dimensions. These problems range from counting the number of intersecting pairs between m blue segments andn red segments in the plane (assuming that two line segments are disjoint if they have the same color) to finding the smallest vertical distance between two nonintersecting polyhedral terrains in three-dimensional space. We solve these problems efficiently by using a variant of the segment tree. For the three-dimensional problems we also apply a variety of recent combinatorial and algorithmic techniques involving arrangements of lines in three-dimensional space, as developed in a companion paper.

Key words

Computational geometry Line-segment intersection Segment trees Lines in space Polyhedral terrains Deterministic and randomized algorithms 

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. [A1]
    P. K. Agarwal, Intersection and decomposition algorithms for arrangements of curves in the plane, Ph.D. Thesis, New York University, 1989.Google Scholar
  2. [A2]
    P. K. Agarwal, Private communication, 1991.Google Scholar
  3. [C1]
    B. Chazelle, Reporting and counting segment intersections,J. Comput. System Sci. 32(2) (1986), 156–182.Google Scholar
  4. [C2]
    B. Chazelle, An optimal convex hull algorithm and new results on cuttings,Proc. 32nd Ann. IEEE Symp. on Foundations of Computer Science, 1991, pp. 29–38.Google Scholar
  5. [C3]
    B. Chazelle, Cutting hyperplanes for divide-and-conquer,Discrete Comput. Geom. 9 (1993), 145–158.Google Scholar
  6. [CE]
    B. Chazelle and H. Edelsbrunner, An optimal algorithm for intersecting line segments in the plane,J. Assoc. Comput. Mach. 39 (1992), 1–54.Google Scholar
  7. [CEG+]
    B. Chazelle, H. Edelsbrunner, L. J. Guibas, M. Sharir, and J. Stolfi, Lines in space-combina-torics, algorithms, Tech. Report, Dept. Computer Science, Courant Institute, New York, 1990.Google Scholar
  8. [CG]
    B. Chazelle and L. J. Guibas, Fractional cascading: I. A data structuring technique,Algorithmica 1 (1986), 133–162.Google Scholar
  9. [CS]
    B. Chazelle and M. Sharir, An algorithm for generalized point location and its applications,J. Symbolic Comput. 10 (1990), 281–309.Google Scholar
  10. [CSSS]
    R. Cole, J. Salowe, W. Steiger, and E. Szemerédi, An optimal-time algorithm for slope selection,SIAM J. Comput. 18 (1989), 792–810.Google Scholar
  11. [EGS]
    H. Edelsbrunner, L. J. Guibas, and J. Stolfi, Optimal point location in a monotone subdivision,SIAM J. Comput. 15 (1986), 317–340.Google Scholar
  12. [EM]
    H. Edelsbrunner and E. P. Mücke, Simulation of simplicity: a technique to cope with degenerate cases in geometric algorithms,ACM Trans. Graphics 9(1) (1990), 66–104.Google Scholar
  13. [GOS]
    L. J. Guibas, M. H. Overmars and M. Sharir, Intersecting line segments, ray shooting, and other applications of geometric partitioning techniques, Tech. Report RUU-CS-88-26, Dept. Computer Science, University of Utrecht, 1988.Google Scholar
  14. [GS]
    L. J. Guibas and R. Seidel, Computing convolutions by reciprocal search,Discrete Comput. Geom. 2 (1987), 175–193.Google Scholar
  15. [M1]
    J. Matoušek, Approximations and optimal geometric divide-and-conquer,Proc. 23rd Ann. ACM Symp. on Theory of Computing 1991, pp. 505–511.Google Scholar
  16. [M2]
    J. Matoušek, Efficient partition trees,Proc. 7th Ann. ACM Symp. on Computational Geometry, 1991, pp. 1–9.Google Scholar
  17. [MaS]
    H. Mairson and J. Stolfi, Reporting and counting intersections between two sets of line segments, inTheoretical Foundations of Computer Graphics and CAD (R. A. Earnshaw, ed.), NATO ASI Series, Vol. F-40, Springer-Verlag, Berlin, 1988, pp. 307–325.Google Scholar
  18. [MeS]
    K. Mehlhorn and K. Simon, Intersecting two polyhedra one of which is convex, inProc. Fundamentals of Computer Theory, Lecture Notes in Computer Science, Vol. 199, Springer-Verlag, Berlin, 1985, pp. 534–542.Google Scholar
  19. [PS]
    F. P. Preparata and M. I. Shamos,Computational Geometry—An Introduction, Springer-Verlag, New York, 1985.Google Scholar
  20. [S]
    M. Sharir, The shortest watchtower and related problems for polyhedral terrains,Inform. Process. Lett. 29 (1988), 265–270.Google Scholar
  21. [VW]
    V. K. Vaishnavi and D. Wood, Rectilinear line segment intersection, layered segment trees and dynamization,J. Algorithms 2 (1982), 160–176.Google Scholar

Copyright information

© Springer-Verlag New York Inc. 1994

Authors and Affiliations

  • Bernard Chazelle
    • 1
  • Herbert Edelsbrunner
    • 2
  • Leonidas J. Guibas
    • 3
    • 4
  • Micha Sharir
    • 5
    • 6
  1. 1.Department of Computer SciencePrinceton UniversityPrincetonUSA
  2. 2.Department of Computer ScienceUniversity of Illinois at Urbana-ChampaignUrbanaUSA
  3. 3.DEC Systems Research CenterPalo AltoUSA
  4. 4.Computer Science DepartmentStanford UniversityUSA
  5. 5.Courant Institute of Mathematical SciencesNew York UniversityNew YorkUSA
  6. 6.School of Mathematical SciencesTel Aviv UniversityTel AvivIsrael

Personalised recommendations