Questions: Minimum Spanning Trees and Optimization

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A network engineer connects 5 cities by always adding the cheapest remaining cable that does not create a loop. She never considers the global structure. Yet this greedy strategy is guaranteed to find the optimal network. What property makes this provably correct?

AThe MST is unique when all edge weights are distinct, so any consistent rule finds it.
BThe cut property: the minimum-weight edge crossing any partition of vertices must belong to every MST.
CGreedy algorithms always produce optimal results for graph problems.
DTrees have exactly n−1 edges, so any set of n−1 acyclic edges forms a valid MST.
Question 2 Multiple Choice

What is the key difference in approach between Kruskal's algorithm and Prim's algorithm?

AKruskal's guarantees an MST; Prim's only finds a locally optimal spanning tree.
BKruskal's processes all edges globally in sorted order; Prim's grows a single tree vertex by vertex from a starting node.
CKruskal's works only on undirected graphs; Prim's works on directed graphs.
DKruskal's uses a priority queue for edge selection; Prim's uses union-find for cycle detection.
Question 3 True / False

If a connected weighted graph has all distinct edge weights, it has exactly one minimum spanning tree.

TTrue
FFalse
Question 4 True / False

Kruskal's algorithm finds the MST by starting with the complete graph and repeatedly removing the most expensive edge that does not disconnect the graph.

TTrue
FFalse
Question 5 Short Answer

Why does the cut property guarantee that a greedy edge-selection strategy produces a globally optimal spanning tree rather than just a locally cheap one?

Think about your answer, then reveal below.