Algorithms - Parallel version of Floyd-Warshall Pseudocode. Floyd-Warshall (W) n
ID: 3571572 • Letter: A
Question
Algorithms - Parallel version of Floyd-Warshall Pseudocode.
Floyd-Warshall (W) n = W.rows create n x n array D for i = 1 to n for j = 1 to n D[i, j] = W[i, j] for k = 1 to n for i = 1 to n for j = 1 to n D[i, j] = min(D[i, j], D[i, k] + D[k, j]) return D Design a parallel version of this algorithm using spawn, sync. and/or parallel for as appropriate. (Copy and modify the pseudocode.) Think carefully about what can be parallelized and what can't, and explain your choices. Analyze the asymptotic runtime of your algorithm in terms of its work, span, and parallelism asymptotic runtime of your algorithm in terms of its work, span, and parallelism