HIGH-PROBABILITY PARALLEL TRANSITIVE-CLOSURE ALGORITHMS

被引:108
作者
ULLMAN, JD [1 ]
YANNAKAKIS, M [1 ]
机构
[1] AT&T BELL LABS,MURRAY HILL,NJ 07974
关键词
TRANSITIVE CLOSURE; REACHABILITY; BREADTH-FIRST SEARCH; PARALLEL ALGORITHMS; PROBABILISTIC ALGORITHMS;
D O I
10.1137/0220006
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
There is a straightforward algorithm for computing the transitive-closure of an n-node graph in O(log2 n) time on an EREW-PRAM, using n3/log n processors, or indeed with M(n)/log n processors if serial matrix multiplication in M(n) time can be done. This algorithm is within a log factor of optimal in work (processor-time product), for solving the all-pairs transitive-closure problem for dense graphs. However, this algorithm is far from optimal when either (a) the graph is sparse, or (b) we want to solve the single-source transitive-closure problem. It would be ideal to have an NC algorithm for transitive-closure that took about e processors for the single-source problem on a graph with n nodes and e greater-than-or-equal-to n arcs, or about en processors for the all-pairs problem on the same graph. While an algorithm that good cannot be offered, algorithms with the following performance can be offered. (1) For single-source, O(n-epsilon) time with O(en1-2-epsilon) processors, provided e greater-than-or-equal-to n2-3-epsilon, and (2) for all-pairs, O(n-epsilon) time and O(en1-epsilon) processors, provided e greater-than-or-equal-to n2-2-epsilon-1. Each of these claims assumes that 0 < epsilon greater-than-or-equal-to 1/2. Importantly, the algorithms are (only) high-probability algorithms; that is, if they find a path, then a path exists, but they may fail to find a path that exists with probability at most 2-alpha-c, where alpha is some positive constant, and c is a multiplier for the time taken by the algorithm. However, it is shown that incorrect results can be detected, thus putting the algorithm in the "Las Vegas" class. Finally, it is shown how to do "breadth-first-search" with the same performance as can be achieved for single-source transitive closure.
引用
收藏
页码:100 / 125
页数:26
相关论文
共 12 条
[1]  
Aho A. V., 1974, DESIGN ANAL COMPUTER
[2]  
BLONIARZ PA, 1976, 3RD INT C AUT LANG P
[3]   PARALLEL EVALUATION OF GENERAL ARITHMETIC EXPRESSIONS [J].
BRENT, RP .
JOURNAL OF THE ACM, 1974, 21 (02) :201-206
[4]  
BRODER AZ, 1989, 21ST P ANN ACM S THE
[5]  
Cole R., 1986, 27th Annual Symposium on Foundations of Computer Science (Cat. No.86CH2354-9), P478, DOI 10.1109/SFCS.1986.10
[6]  
Gazit H., 1986, 27th Annual Symposium on Foundations of Computer Science (Cat. No.86CH2354-9), P492, DOI 10.1109/SFCS.1986.9
[7]   AN IMPROVED PARALLEL ALGORITHM THAT COMPUTES THE BFS NUMBERING OF A DIRECTED GRAPH [J].
GAZIT, H ;
MILLER, GL .
INFORMATION PROCESSING LETTERS, 1988, 28 (02) :61-65
[8]  
Greene D.H., 1982, MATH ANAL ALGORITHMS
[9]   ALGORITHM FOR TRANSITIVE CLOSURE WITH LINEAR EXPECTED TIME [J].
SCHNORR, CP .
SIAM JOURNAL ON COMPUTING, 1978, 7 (02) :127-133
[10]   AN O(LOG N) PARALLEL CONNECTIVITY ALGORITHM [J].
SHILOACH, Y ;
VISHKIN, U .
JOURNAL OF ALGORITHMS, 1982, 3 (01) :57-67