🌲 Kruskal — Minimum Spanning Tree Full Demo
MST O(E log E) Step 0/10
📊 Graph (green = MST edges, red = skipped)
🗂 Data Structures
Sorted Edges (by weight)
DSU Components
MST Total Weight
Time: O(E log E)
Space: O(V) (DSU)
💻 Code
HintClick Next Step ▶ to start and observe how Kruskal selects edges by weight, using DSU to detect cycles.
0/10

Keyboard: Next   Prev   R Reset