



















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




















MST-KRUSKAL( G , w ) A = Ø for each vertex v Є V [ G ] MAKE-SET( v ) sort the edges of E into nondecreasing order by weight w for each edge ( u , v ) Є E , taken in nondecreasing order by weight if (FIND-SET( u ) != FIND-SET( v )) A = A U {( u , v )} UNION( u , v ) return A
Is the shortest path problem well defined? - Cont'd