Abstract
AnO(¦E¦log2 n) algorithm is presented to construct the visibility graph for a collection ofn nonintersecting line segments, where ¦E¦ is the number of edges in the visibility graph. This algorithm is much faster than theO(n 2)-time andO(n 2)-space algorithms by Asanoet al., and by Welzl, on sparse visibility graphs. Thus we partially resolve an open problem raised by Welzl. Further, our algorithm uses onlyO(n) working storage.
Similar content being viewed by others
References
A. V. Aho, J. Hopcroft, and J. D. Ullman,The Design and Analysis of Computer Algorithms, Addison-Wesley, Reading, MA, 1974.
T. Asano, T. Asano, L. Guibas, J. Hershberger, and H. Imai, Visibility of disjoint polygons,Algorithmica,1 (1986), 49–63.
T. Lozano-Perez and M. A. Wesley, An algorithm for planning collision-free paths among polyhedral obstacles.Comm. ACM,22 (1979), 560–570.
M. H. Overmars and J. Van Leeuwen, Maintenance of configurations in the plane,J. Comput. System Sci,23 (1981), 166–204.
S. Sudarshan, A fast algorithm for computing sparse visibility graphs, B. Tech. Project Report, Dept. of Comput. Sci and Engg., IIT, Madras-36, June, 1987.
E. Welzl, Constructing the visibility graph forn line segments inO(n 2) time,Inform. Process. Lett.,20 (1985), 167–171.
Author information
Authors and Affiliations
Additional information
Communicated by D. T. Lee.
Rights and permissions
About this article
Cite this article
Sudarshan, S., Pandu Rangan, C. A fast algorithm for computing sparse visibility graphs. Algorithmica 5, 201–214 (1990). https://doi.org/10.1007/BF01840385
Received:
Revised:
Issue Date:
DOI: https://doi.org/10.1007/BF01840385