Greedy rule: process edges in nondecreasing weight and accept an edge only if it connects two different DSU sets (otherwise it forms a cycle).
Click Start to load graph, sort edges, initialize DSU. Then press Step.
Course designed by Abhay Singh Bisht. Connect on LinkedIn →