Used to find minimum spanning tree Faster in sparse graphs, does not need the graph to be connected.
Steps:
Removes all loops and parallel edges except one with least weight.
Create edge table.
Sort all the edges in increasing order of their weight.
Pick the smallest edge. Check if it forms a cycle with the spanning tree formed so far. If cycle is not formed, include this edge. Else, discard it.
Repeat step #4 until there are (V-1) edges in the spanning tree.