Linear time algorithms for visibility and shortest path problems inside simple polygons

  • Authors:
  • L Guibas;J Hershberger;D Leven;M Sharir;R Tarjan

  • Affiliations:
  • Computer Science Department, Stanford University and DEC/SRC;Computer Science Department, Stanford University;School of Mathematical Sciences, Tel-Aviv University;School of Mathematical Sciences, Tel-Aviv University and Courant Institute of Mathematical Sciences, New York University;AT&T Bell Laboratories, Department of Computer Science, Princeton University

  • Venue:
  • SCG '86 Proceedings of the second annual symposium on Computational geometry
  • Year:
  • 1986

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present linear time algorithms for solving the following problems involving a simple planar polygon P: (i) Computing the collection of all shortest paths inside P from a given source vertex s to all the other vertices of P; (ii) Computing the subpolygon of P consisting of points that are visible from a segment within P; (iii) Preprocessing P so that for any query ray r emerging from some fixed edge e of P, we can find in logarithmic time the first intersection of r with the boundary of P; (iv) Preprocessing P so that for any query point x in P, we can find in logarithmic time the portion of the edge e that is visible from x; (v) Preprocessing P so that for any query point x inside P and direction u, we can find in logarithmic time the first point on the boundary of P hit by the ray at direction u from x; (vi) Calculating a hierarchical decomposition of P into smaller polygons by recursive polygon cutting, as in [Ch]. (vii) Calculating the (clockwise and counterclockwise) “convex ropes” (in the terminology of [PS]) from a fixed vertex s of P lying on its convex hull, to all other vertices of P. All these algorithms are based on a recent linear time algorithm of Tarjan and Van Wyk for triangulating a simple polygon, but use additional techniques to make all subsequent phases of these algorithms also linear.