Questions: Minimum Spanning Trees and Algorithms

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

You are running Kruskal's algorithm. You've already added several edges to your MST. The next-lightest remaining edge connects vertex A to vertex B, but both A and B are already in your current tree. What should you do?

AAdd it anyway — Kruskal's always adds the globally lightest available edge.
BSkip it, because adding it would create a cycle in the spanning tree.
CReplace the heaviest edge currently in the tree with this lighter one.
DStop the algorithm — encountering this edge means the MST is complete.
Question 2 Multiple Choice

Why can Kruskal's and Prim's algorithms find globally optimal MSTs using only local greedy choices, while a greedy approach fails for minimum Hamiltonian paths?

ABecause MST algorithms process a smaller number of edges than Hamiltonian path algorithms.
BBecause the cut property provides a local certificate of global optimality: the minimum-weight edge crossing any partition of vertices into two sets must belong to some MST.
CBecause spanning trees are structurally simpler than Hamiltonian paths, making search space exploration easier.
DBecause greedy algorithms are universally correct for graph problems and fail only for non-graph combinatorial problems.
Question 3 True / False

A weighted connected graph typically has exactly one minimum spanning tree.

TTrue
FFalse
Question 4 True / False

According to the cut property, the minimum-weight edge crossing any partition of a connected graph's vertices into two non-empty sets must belong to at least one MST.

TTrue
FFalse
Question 5 Short Answer

A network designer installs cables connecting 10 cities using exactly the MST of the city graph. Several months later, one cable fails (an edge is removed from the MST). Why does this necessarily disconnect at least two cities from the rest? How does this relate to the defining structural property of spanning trees?

Think about your answer, then reveal below.