Question
Explain in detail how you would construct a Minimum Spanning Tree (MST) for a network graph with 8 nodes and 12 edges, given that the total cost must not exceed a budget \(C\). Describe how standard algorithms must be adapted to include this budget constraint.
Hint
Discuss applying Kruskal’s or Prim’s algorithm with a supplementary check for the cumulative cost at each step.
-
Answer
-
Mark Scheme
-
Explanation
- Formula Booklet
-
Answer
Complete Answer
By modifying Kruskal’s algorithm to include a budget check at each addition, one can construct an MST that stays within \(C\). Edges are added in increasing order of weight, and if adding an edge exceeds the budget, it is skipped in favor of the next cheapest edge.
-
Mark Scheme
-
Answer Explanation


