(a) True. If we feefl the costs of into Kruskalls algorithm, it will sort them in the same
order, and hence put the same subset ef edges in the MST.
Note: It is not enough just to say, “True, because the edge costs have the same order
after they are sorted." The same sentence could be written about (la), which is false; 1t’s
Crucial here to mention that there are minimum spanning tree algorithms that only Care
about the relative order of the costs, not their actual values.
(b) False. Let G have edges (S, li), (mf), and (SJ), where the first two of these eflges
have cost 3 and the third has cost 5. Then the shortest path is the single edge (st). but
after squaring the costs the shortest path would go through U.