Anusha Murali

Logo

Please see github.com/anusha-murali for all of my repositories.

View GitHub Profile

Kruskal’s Algorithm

  1. Sort edges in ascending order of weight.
  2. Repeatedly add the lightest edge that does not create a cycle until we have $|V|-1$ edges.

Runtime: $O(|E| \log |V|)$ (Union-Find)

Back to Minimum Spanning Tree

Data Structures and Algorithms Table of Contents


anusha-murali.github.io