Lukas' Notes

Home

❯

Knowledge

❯

Kruskal's Algorithm

Kruskal's Algorithm

Jul 25, 20251 min read

graph-theory

Definition

Kruskal's Algorithm

Kruskal’s algorithm is a greedy algorithm that finds a minimum spanning tree for a undirected network.

For sparse graph, (∣E∣=Θ(∣V∣)), Kruskal’s algorithm is better than Prim’s algorithm.

Runtime

  • Union-find-operations are practically possible in constant time, i.e., the second part of the algorithm has nearly linear runtime.
  • The total effort is now determined by edge sorting and is thus O(∣E∣log∣V∣).

Graph View

  • Definition
  • Runtime

Backlinks

  • Minimal Spanning Tree
  • Prim's Algorithm

Created with Quartz v4.4.0 © 2025

  • GitHub