Abstract
We consider the problem of preprocessing an n-vertex digraph with real edge weights so that subsequent queries for the shortest path or distance between any two vertices can be efficiently answered. We give parallel algorithms for the EREW PRAM model of computation that depend on the treewidth of the input graph. When the treewidth is a constant, our algorithms can answer distance queries in O(α(n)) time using a single processor, after a preprocessing of O(log2 n) time and O(n) work, where α(n) is the inverse of Ackermann's function. The class of constant treewidth graphs contains outerplanar graphs and series-parallel graphs, among others. To the best of our knowledge, these are the first parallel algorithms which achieve these bounds for any class of graphs except trees. We also give a dynamic algorithm which, after a change in an edge weight, updates our data structures in O(log n) time using O(n α) work, for any constant 0<β< 1. Moreover, we give an algorithm of independent interest: computing a shortest path tree, or finding a negative cycle in O(log2 n) time using O(n) work.
This work was partially supported by the EU ESPRIT Basic Research Action No. 7141 (ALCOM II).
Preview
Unable to display preview. Download preview PDF.
References
W. Ackermann, “Zum Hilbertschen Aufbau der reellen Zahlen”, Math. Ann., 99(1928), pp.118–133.
A. Aho, J. Hopcroft and J. Ullman, “The Design and Analysis of Computer Algorithms”, Addison-Wesley, 1974.
R. Ahuja, T. Magnanti and J. Orlin, “Network Flows”, Prentice-Hall, 1993.
N. Alon and B. Schieber, “Optimal Preprocessing for Answering On-line Product Queries”, Tech. Rep. No. 71/87, Tel-Aviv University, 1987.
S. Arnborg, “Efficient Algorithms for Combinatorial Problems on Graphs with Bounded Decomposability — A Survey”, BIT, 25 (1985), pp.2–23.
H. Bodlaender, “NC-algorithms for Graphs with Small Treewidth”, Proc. 14th WG'88, LNCS 344, Springer-Verlag, pp.1–10, 1989.
H. Bodlaender, “A Tourist Guide through Treewidth”, Acta Cybernetica, Vol.11, No.1–2, pp.1–21, 1993.
H. Bodlaender and T. Hagerup, “Parallel Algorithms with Optimal Speedup for Bounded Treewidth”, Proc. 22nd ICALP'95, LNCS, Springer-Verlag, to appear.
S. Chaudhuri and C. Zaroliagis, “Shortest Path Queries in Digraphs of Small Treewidth”, Proc. 22nd ICALP'95, LNCS, Springer-Verlag, to appear.
E. Cohen, “Efficient Parallel Shortest-paths in Digraphs with a Separator Decomposition”, Proc. 5th ACM SPAA, 1993, pp.57–67.
H. Djidjev, G. Pantziou and C. Zaroliagis, “On-line and Dynamic Algorithms for Shortest Path Problems”, Proc. 12th STACS'95, LNCS 900, pp. 193–204, Springer-Verlag, 1995.
Y. Han, V. Pan and J. Reif, “Efficient Parallel Algorithms for Computing All Pair Shortest Paths in Directed Graphs”, Proc. 4th ACM SPAA, 1992, pp.353–362.
J. JáJá, “An Introduction to Parallel Algorithms”, Addison-Wesley, 1992.
D. Kavvadias, G. Pantziou, P. Spirakis and C. Zaroliagis, “Efficient Sequential and Parallel Algorithms for the Negative Cycle Problem”, Proc. 5th ISAAC, 1994, LNCS 834, pp.270–278, Springer-Verlag.
P. Klein and S. Subramanian, “A linear-processor polylog-time algorithm for shortest paths in planar graphs”, Proc. 34th IEEE Symp. on FOCS, 1993, pp.259–270.
N. Robertson and P. Seymour, “Graph Minors I: Excluding a Forest”, J. Comb. Theory Series B, 35 (1983), pp.39–61.
N. Robertson and P. Seymour, “Graph Minors II: Algorithmic Aspects of Treewidth”, J. Algorithms, 7 (1986), pp.309–322.
R.E. Tarjan, “Data Structures and Network Algorithms”, SIAM, 1983.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1995 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Chaudhuri, S., Zaroliagis, C.D. (1995). Optimal parallel shortest paths in small treewidth digraphs. In: Spirakis, P. (eds) Algorithms — ESA '95. ESA 1995. Lecture Notes in Computer Science, vol 979. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-60313-1_132
Download citation
DOI: https://doi.org/10.1007/3-540-60313-1_132
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-60313-9
Online ISBN: 978-3-540-44913-3
eBook Packages: Springer Book Archive