Brain Dump

Kruskal's Algorithm

Tags
algorithm

Is an algorithm to find the minimum spanning tree of a graph \( G \).

Formulation

The algorithm is:

  1. Sort the edges into ascending order.
  2. Choose an edge with the minimum weight and join on a sub-graph.
  3. Find the next edge of minimum weight that does not make cycle and add that to the sub-graph.
  4. Repeat step 3 until all vertices are connected.

Links to this note