Efficient Algorithms for Shortest Distance Queries on Special Classes of Polygons

The problem of finding a rectilinear minimum bend path (RMBP) between two designated points inside a rectilinear polygon has applications in robotics and motion planning. In this paper, we present efficient algorithms to solve the query version of the RMBP problem for special classes of rectilinear polygons given their visibility graphs. Specifically, we show that given an unweighted graph G = (V, E), with ¦V¦ = N and ¦E¦ = M, algorithms to preprocess G in linear space and time such that the shortest distance queries — queries asking for the distance between any pair of nodes in the graph — can be answered in constant time and space are presented in this paper. For the case of a chordal graph G, our algorithms give a distance which is at most one away from the actual shortest distance. When G is a K-chordal graph, our algorithm produces an exact shortest distance in O(K) time. We also present a non-trivial parallel implementation of the sequential preprocessing algorithm for the CREW-PRAM model which runs in O(log2 N) time using O(N + M) processors. After the preprocessing, we can answer the queries in constant time using a single processor.

[1]  Alfred V. Aho,et al.  The Design and Analysis of Computer Algorithms , 1974 .

[2]  Philip N. Klein,et al.  Efficient parallel algorithms for chordal graphs , 1988, [Proceedings 1988] 29th Annual Symposium on Foundations of Computer Science.

[3]  Paul F. Dietz Finding Level-Ancestors in Dynamic Trees , 1991, WADS.

[4]  Uzi Vishkin,et al.  On Finding Lowest Common Ancestors: Simplification and Parallelization , 1988, AWOC.

[5]  B. Monien,et al.  Data structures and efficient algorithms , 1992, Lecture Notes in Computer Science.

[6]  Hazel Everett,et al.  Recognizing Visibility Graphs of Spiral Polygons , 1990, J. Algorithms.

[7]  Joseph JáJá,et al.  An Introduction to Parallel Algorithms , 1992 .

[8]  John Canny,et al.  The complexity of robot motion planning , 1988 .

[9]  Esther M. Arkin,et al.  Optimal link path queries in a simple polygon , 1992, SODA '92.

[10]  R. Sridhar,et al.  Efficient algorithms for all-pairs shortest path problem on interval, directed path, and circular-arc graphs , 1993, Proceedings of ICCI'93: 5th International Conference on Computing and Information.

[11]  Christian Icking,et al.  Restricted Orientation Computational Geometry , 1992, Data Structures and Efficient Algorithms.

[12]  Kellogg S. Booth,et al.  Dominating Sets in Chordal Graphs , 1982, SIAM J. Comput..

[13]  F. Gavril The intersection graphs of subtrees in tree are exactly the chordal graphs , 1974 .

[14]  M. Golumbic Algorithmic graph theory and perfect graphs , 1980 .

[15]  Rajeev Motwani,et al.  Perfect Graphs and Orthogonally Convex Covers , 1989, SIAM J. Discret. Math..

[16]  Raimund Seidel,et al.  On the all-pairs-shortest-path problem , 1992, STOC '92.

[17]  Paul F. Dietz,et al.  A Linear Time Algorithm for the Generalized Consecutive Retrieval Problem , 1979 .