1. Finding MST via Kruskal's Algorithm
Computer Science StudentBackground
A student needs to solve a discrete math problem to find the minimum spanning tree of a 6-node network and identify which edge gets rejected for creating a cycle.
Problem
Determine the step-by-step edge acceptance/rejection order and calculate the total weight using Kruskal's algorithm.
How to use
Paste the 8 edge definitions into the Edges field, select 'Kruskal (sort + union-find)' as the algorithm, set decimal places to 2, and run the calculation.
edges: A B 4\nA C 2\nB C 5\nB D 10\nC E 3\nD E 4\nD F 11\nE F 8
algorithm: kruskal
decimalPlaces: 2Outcome
Edges A—C (2), C—E (3), A—B (4), D—E (4), and E—F (8) are accepted, edge B—C (5) is rejected as a cycle, yielding a total MST weight of 21 across 5 edges.