Fast and Efficient Solution of Path Algebra Problems

Abstract This paper extends the author's parallel nested dissection algorithm (Pan and Reif, Technical Report 88-18, Computer Science Department, SUNY Albany, 1988) originally devised for solving sparse linear systems. We present a class of new applications of the nested dissection method, this time to path algebra computations (in both cases of the single source path problems and of the all pair path problems), where the path algebra problem is defined by a symmetric matrix A whose associated undirected graph G has a known family of separators of small size s ( n ) (in many cases of interest, s ( n ) = O (√ n ).) The assumption that G has known separators is reasonable in a large variety of practical dynamic situations, where G is fixed and the entries of the matrix A associated with the edges of G may vary with the input. We substantially improve the known algorithms for path algebra problems of this general class: Previous estimates Path problem Sequential time Parallel time Proccessors Precomputed separators Single source O(n 2 ) O(n) O(I(n) log n) n n 3 /(I(n) log n) No Yes All pairs O(n 3 ) O(n) O(I(n) log n) n 2 n 3 /(I(n) log n) No Yes New Algrithms Path problem Sequential time Parallel time Processors Precomputed separators Single source O(n 1.5 ) O(( log n) √n) O(I(n) log 2 n) n/ log n n 1.5 /(I(n) log n) No Yes All pairs O(n 2 log n) O(( log n) √n) O(I(n) log 2 n) n 1.5 n 2 /I(n) log n) No Yes Here we assume that G is given with its O (√ n )-separator family. The latter assumption can be lifted for the sequential time estimates and for O ((log n ) √ n ) parallel time estimates for planar graphs, because the evaluation of an O (√)-separator family can be done in O ( n ) sequential time (Lipton and Tarjan, SIAM J. Appl. Math. 36 , No. 2, (1979), 177–189) or, on PRAM, in O ((log n ) √ n ) parallel time with (√ n )/log n processors (Gazit and Miller, manuscript, Computer Sci. Dept., University of Southern California, 1986), with small overhead constants in both cases. I ( n ) denotes parallel time of computing the sum of n values, I ( n )= O (log n ) for any EREW PRAM, I ( n ) = O (1) on a randomized CRCW PRAM. Furthermore using the randomized algorithm of (Gazit and Miller, in “Proceedings, 28th Annu. IEEE Symp. FOCS, 1987,” pp. 238–248), we may precompute separators of a planar graph using O (log 2 n ) time, n + ƒ 1+ϵ processors for a positive ϵ where ƒ is the number of faces; this is less than the cost of the subsequent path computation. Moreover, we preserve the above processor bounds but further decrease the parallel time by a factor of log n (via a modification of our new algorithms based on pipelining) in the important case of computing the minimum cost paths in a planar graph. Further applications lead, in particular, to computing a maxflow and a mincut in an undirected planar network using O ( I ( n ) log 2 n ) parallel steps, n 1.5 I(n) log n processors, versus the known bounds, O (log 2 n ) and n 4 , of (Johnson, J. ACM 34 , No. 4 (1987), 950–967).

[1]  R. Backhouse,et al.  Regular Algebra Applied to Path-finding Problems , 1975 .

[2]  Richard Bellman,et al.  ON A ROUTING PROBLEM , 1958 .

[3]  D. Rose,et al.  Generalized nested dissection , 1977 .

[4]  Victor Y. Pan,et al.  Fast and Efficient Algorithms for Linear Programming and for the Linear Least Squares Problem. , 1985 .

[5]  Victor Y. Pan,et al.  How to Multiply Matrices Faster , 1984, Lecture Notes in Computer Science.

[6]  Nobuji Saito,et al.  An Efficient Algorithm for Finding Multicommodity Flows in Planar Networks , 1985, SIAM J. Comput..

[7]  Philip N. Klein,et al.  An efficient parallel algorithm for planarity , 1986, 27th Annual Symposium on Foundations of Computer Science (sfcs 1986).

[8]  Refael Hassin,et al.  An O(n log2 n) Algorithm for Maximum Flow in Undirected Planar Networks , 1985, SIAM J. Comput..

[9]  Greg N. Frederickson,et al.  Fast Algorithms for Shortest Paths in Planar Graphs, with Applications , 1987, SIAM J. Comput..

[10]  J. Hopcroft,et al.  Fast parallel matrix and GCD computations , 1982, FOCS 1982.

[11]  Gary L. Miller,et al.  A parallel algorithm for finding a separator in planar graphs , 1987, 28th Annual Symposium on Foundations of Computer Science (sfcs 1987).

[12]  Donald B. Johnson,et al.  Parallel algorithms for minimum cuts and maximum flows in planar networks , 1982, 23rd Annual Symposium on Foundations of Computer Science (sfcs 1982).

[13]  B. Carré An Algebra for Network Routing Problems , 1971 .

[14]  John H. Reif,et al.  Minimum S-T Cut of a Planar Undirected Network in O(n log²(n)) Time , 1981, ICALP.

[15]  Rüdiger Reischuk,et al.  A fast probabilistic parallel sorting algorithm , 1981, 22nd Annual Symposium on Foundations of Computer Science (sfcs 1981).

[16]  Refael Hassin,et al.  On multicommodity flows in planar graphs , 1984, Networks.

[17]  Robert E. Tarjan,et al.  A Unified Approach to Path Problems , 1981, JACM.

[18]  Victor Y. Pan,et al.  Extension of the Parallel Nested Dissection Algorithm to Path Algebra Problems , 1986, FSTTCS.

[19]  Robert E. Tarjan,et al.  Fast Algorithms for Solving Path Problems , 1981, JACM.

[20]  R. Tarjan,et al.  A Separator Theorem for Planar Graphs , 1977 .

[21]  John H. Reif,et al.  Minimum s-t Cut of a Planar Undirected Network in O(n log2(n)) Time , 1983, SIAM J. Comput..

[22]  Michel Minoux,et al.  Graphs and Algorithms , 1984 .