sort the edges of G in ascending order in queue Qedges while |EMST | < (n − 1) do pop the first edge e from Qedges if EMST [ {e} does not lead to a cycle then EMST = EMST [ {e} end if end while Complexity: O(|E| log |V |) V...setofvertices, E...setofedges