View worked solution
Answer: 7
To find the maximum possible weight of a minimum spanning tree (MST) of , we want to assign the edge weights and to the complete graph in a way that forces Kruskal's algorithm to choose larger weights.
Let the sorted weights of the edges be with weights respectively.
- Kruskal's algorithm will always select the edge of weight ().
- It will then select the edge of weight (), as two edges cannot form a cycle.
- To maximize the MST weight, we must force the algorithm to reject the edge of weight (). This is only possible if the edges with weights and form a cycle (a triangle) on three vertices, say and .
With forming a triangle, the fourth vertex must connect to this component. The edges incident to are connected to and , and their weights must be a permutation of the remaining weights: and .
To connect to the spanned component, Kruskal's algorithm will choose the minimum weight edge incident to , which is the edge of weight .
Thus, the edges selected for the MST will have weights and .
Free practice · Your answers on this page are not saved.
