Skip to content

Commit c0827a4

Browse files
committed
Update readme file
1 parent fb6a426 commit c0827a4

File tree

1 file changed

+1
-1
lines changed
  • DirectProgramming/DPC++/GraphAlgorithms/all-pairs-shortest-paths

1 file changed

+1
-1
lines changed

DirectProgramming/DPC++/GraphAlgorithms/all-pairs-shortest-paths/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The parallel implementation of blocked Floyd Warshall algorithm has three phases
2222
The inner loop of the sequential implementation is:
2323
g[i][j] = min(g[i][j], g[i][k] + g[k][j])
2424

25-
A careful observation shows that for the kth iteration of the outer loop, the computation depends on cells either on the kth column, g[i][k] or on the kth row, g[k][j] of the graph. Phase 1 handles g[k][k], phase 2 handles g[*][k] and g[k][*], and phase 3 handles g[*][*] in that sequence. This cell level observations largely propagate to the blocks as well.
25+
A careful observation shows that for the kth iteration of the outer loop, the computation depends on cells either on the kth column, g[i][k] or on the kth row, g[k][j] of the graph. Phase 1 handles g[k][k], phase 2 handles g[\*][k] and g[k][\*], and phase 3 handles g[\*][\*] in that sequence. This cell level observations largely propagate to the blocks as well.
2626

2727
In each phase computation within a block can proceed independently in parallel.
2828

0 commit comments

Comments
 (0)