Abstract
Given a simple polygonP ofn vertices, we present an algorithm that finds the pair of points on the boundary ofP that maximizes theexternal shortest path between them. This path is defined as theexternal geodesic diameter ofP. The algorithm takes0(n 2) time and requires0(n) space. Surprisingly, this problem is quite different from that of computing theinternal geodesic diameter ofP. While the internal diameter is determined by a pair of vertices ofP, this is not the case for the external diameter. Finally, we show how this algorithm can be extended to solve theall external geodesic furthest neighbours problem.
Zusammenfassung
Gegeben sei ein einfaches PolygonP mitn Ecken. Wir geben einen Algorithmus an, der ein Punktepaar auf der Begrenzung vonP liefert, welches die Länge des kürzesten Weges maximiert, der im Äußeren des Polygons verläuft. Den Weg bezeichnen wir als den äußeren geodätischen Durchmesser vonP. Unser Algorithmus benötigt 0(n 2) Zeit und erfordert 0(n) Speicherplatz. Zu unserer Überraschung ist das Problem von dem, der Berechnung des inneren geodätischen Durchmessers vonP völlig verschieden. Während der innere Durchmesser immer in Ecken vonP endet, muß dies für den äußeren Durchmesser nicht der Fall sein. Schließlich zeigen wir noch, daß der Algorithmus so erweitert werden kann, daß er das Problem der entferntesten äußeren geodätischen Nachbarn löst.
Similar content being viewed by others
References
T. Asano, L. Guibas, J. Hershberger, and H. Imai. Visibility-Polygon Search and Euclidean Shortest Paths. Proc. of 26th IEEE Symp. on Foundations of Computer Science, 1985, pp. 155–164.
T. Asano and G. Toussaint. Computing the Geodesic Center of a Simple Polygon. Discrete Algorithms and Complexity, Proc. of the Japan-U.S. Joint Seminar, June 4–6, 1986, Kyoto, Japan, pp. 65–79.
B. Chazelle. A Theorem on Polygon Cutting with Applications. Proc. of 23rd IEEE Symp. on Foundations of Computer Science, 1982, pp. 339–349.
H. Davenport and A. Schinzel. A Combinatorial Problem Connected with Differential Equations. Amer. J. Math.,87, 1965, pp. 684–694.
L. Guibas and J. Hershberger. Optimal Shortest Path Queries in a Simple Polygon. Proc. of the Third Ann. Symp. on Comp. Geom., 1987, pp. 64–75.
L. Guibas, J. Hershberger, D. Leven, M. Sharir, and R. E. Tarjan. Linear Time Algorithms for Visibility and Shortest Path Problems Inside Simple Polygons. Algorithmica,2, 1987, pp. 175–193.
L. Guibas, E. McCreight, M. Plass, and J. Roberts. A New Representation for Linear Lists. Proc. 9th ACM Symp. on Theory of Computing, 1977, pp. 49–60.
S. Huddleston and K. Mehlhorn. A New Data Structure for Representing Sorted Lists. Acta Informatica,17, 1982, pp. 157–184.
d. Kirkpatrick. Optimal Search in Planar Subdivisions. SIAM J. Computing,12, 1983, pp. 28–35.
D. T. Lee and F. P. Preparata. Euclidean Shortest Paths in the Presence of Rectilinear Barriers. Networks, vol. 14, 3, 1984, pp. 393–410.
D. Mount. On Finding Shortest Paths on Convex Polyhedra. Tech. Rept., University of Maryland, May 1985.
R. Pollack, G. Rote and M. Sharir. Computing the Geodesic Center of a Simple Polygon. Tech. Rept. 231, Computer Science Department, Courant Institute, July 1986.
R. Pollack and M. Sharir. Computing the Geodesic Center of a Simple Polygon in “Research Workshop on Moveable Separability of Sets,” G. Toussaint, ed., Bellairs Research Institute of McGill University, February 1986, pp. 26–47.
J. Reif and J. Storer. Shortest Paths in Euclidean Space with Polyhedral Obstacles. Tech. Rept., Brandeis University, April 1985.
J. Reif and J. Storer. Minimizing Turns for Discrete Movement in the Interior of a Polygon. Tech. Rept., Harvard University, December 1985.
M. I. Shamos. Problems in Computational Geometry. PhD thesis, Carnegie-Mellon University, 1977.
M. Sharir and A. Schorr. On Shortest Paths in Polyhedral Spaces. Proc. 16th ACM Symp. on Theory of Computing, 1984, pp. 144–153.
S. Suri. The All-Geodesic-Furthest Neighbours Problem for Simple Polygons. Proc. of the Third Ann. Symp. on Comp. Geom., 1987, pp. 64–75.
E. Szemeredi. On a Problem by Davenport and Schinzel. Acta Arith.,25, 1974, pp. 213–224.
G. Toussaint. Computing Geodesic Properties Inside a Simple Polygon. Revue d'Intelligence Artificielle, 3, 1989, pp. 9–42.
Author information
Authors and Affiliations
Rights and permissions
About this article
Cite this article
Samuel, D., Toussaint, G.T. Computing the external geodesic diameter of a simple polygon. Computing 44, 1–19 (1990). https://doi.org/10.1007/BF02247961
Received:
Issue Date:
DOI: https://doi.org/10.1007/BF02247961