High-Probability Parallel Transitive-Closure Algorithms
There is a straightforward algorithm for computing the transitive-closure of an n-node graph in $O(\log ^2 n)$ time on an EREW-PRAM, using $n^3 / \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 f...
Saved in:
| Published in | SIAM journal on computing Vol. 20; no. 1; pp. 100 - 125 |
|---|---|
| Main Authors | , |
| Format | Journal Article |
| Language | English |
| Published |
Philadelphia, PA
Society for Industrial and Applied Mathematics
01.02.1991
|
| Subjects | |
| Online Access | Get full text |
| ISSN | 0097-5397 1095-7111 |
| DOI | 10.1137/0220006 |
Cover
| Summary: | There is a straightforward algorithm for computing the transitive-closure of an n-node graph in $O(\log ^2 n)$ time on an EREW-PRAM, using $n^3 / \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 $\mathcal{NC}$ algorithm for transitive-closure that took about $e$ processors for the single-source problem on a graph with $n$ nodes and $e \geqq 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, $\tilde{O}(n^\varepsilon )$ time with $\tilde O(en^{1 - 2\varepsilon } )$ processors, provided $e > n^{2 - 3\varepsilon } $, and (2) forall-pairs, $\tilde{O}(n^\varepsilon )$ time and $\tilde O(en^{1 - \varepsilon } )$ processors, provided $e \geqq n^{2 - 2\varepsilon } $. Each of these claims assumes that $0 < \varepsilon \leqq \frac{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. |
|---|---|
| Bibliography: | ObjectType-Article-1 SourceType-Scholarly Journals-1 content type line 14 |
| ISSN: | 0097-5397 1095-7111 |
| DOI: | 10.1137/0220006 |