next up previous
Next: Kruskal's Algorithm (Refined) Up: No Title Previous: Modified Prim's Algorithm

KRUSKAL'S ALGORITHM

Input: G=(V,E,W), a connected graph

Output: tex2html_wrap_inline342 , a MST of G

tex2html_wrap_inline444
While tex2html_wrap_inline446 do

Let tex2html_wrap_inline326 be the least cost edge in E

tex2html_wrap_inline452

if tex2html_wrap_inline326 does not create a cycle in T
then add tex2html_wrap_inline326 to T

end while





Sushil Prasad
Thu Nov 4 14:09:59 EST 1999