d. False (see, for example, the graph of Problem 1a).
3. Since the number of edges in a minimum spanning forest of a graph with
||vertices and ||connectedcomponentsisequalto||−||(this for-
4. Both algorithms work correctly for graphs with negative edge weights.
One way of showing this is to add to all the weights of a graph with
5. Replace each weight ( )by −( )and apply any minimum spanning
tree algorithm that works on graphs with arbitrary weights (e.g., Prim’s
or Kruskal’s algorithm) to the graph with the new weights.
6. Algorithm Kruskal()
//Kruskal’s algorithm with explicit disjoint-subsets operations
//Input: A weighted connected graph =h i
//Output: , the set of edges composing a minimum spanning tree of
7. Let us prove by induction that each of the forests =0 ||−1of
Kruskal’s algorithm is a part (i.e., a subgraph) of some minimum span-
ning tree. (This immediately implies, of course, that the last forest in the
sequence, ||−1is a minimum spanning tree itself. Indeed, it contains