Question: Give a parallel formulation for the Prim's algorithm for finding the minimum spanning tree of a weighted undirected graph. 1. procedure PRIM_MST(V, E, omega, r)
Give a parallel formulation for the Prim's algorithm for finding the minimum spanning tree of a weighted undirected graph. 1. procedure PRIM_MST(V, E, omega, r) 2. begin 3. V_T:= {r}; 4. d[r]: = 0 5. for all v elementof (V - V_T) do 6. if edge (r, v) exists set d[v]: = omega (r, v); 7. else set d[v]: = infinity; 8. while V_T Notequalto V do 9. begin 10. find a vertex u such that d[u]: = min {d[v]|v elementof (V - V_T)}; 11. V_T: = V_T union {u}; 12 for all v elementof (V - V_T) do 13. d[v]:= min{d[v], omega (u, v)]; 14. endwhile 15. end PRIM-MST Assume that the adjacency matrix is partitioned using the 1-D columnwise mapping. Determine the parallel run time speedup, efficiency, cost and isoefficiency for the parallel formulation of Prim's algorithm
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
