An algorithm to find a MST from a Weighted Graph

Algorithm

  1. Keep finding the minimum edges that don’t result in a Cycle for the MST
  2. Do it again…

Storing Cluster

  1. Each cluster is a linked list
  2. Merging two clusters is merging two linked lists

Complexity

  • Collecting and storing edges
  • Cluster updates (with Linked List) per vertex, in total
  • Total time is