DSAverse
Graph Algorithms
Loading Graph Algorithms...
BFS Traversal
visited: 0 / 7Initializing Sorting Algorithms...
Sorting
Trees
Graphs
Preparing interactive visualizations...
Graph Algorithms
Loading Graph Algorithms...
BFS Traversal
visited: 0 / 7Build an MST by sorting every edge and greedily keeping the cheapest ones — using union-find to skip any edge that would close a cycle. Watch separate forests merge into one tree.
O(E log E)O(V)Question 1 of 3
How does Kruskal's algorithm decide which edges to keep?