Question

Consider a simple undirected weighted graph G, all of whose edge weights are distinct. Which of the following statements about the minimum spanning trees of G is/are TRUE?

Choose every correct option
Official answer and solution
Official answer
A, B and C
From
Official GATE 2022 answer key

Solution

Apply Kruskal's algorithm and the Cut Property of Minimum Spanning Trees with distinct edge weights.

Let GG be a connected undirected graph where all edge weights are distinct:

  • (A) TRUE: Let e1e_1 be the edge with the smallest weight and e2e_2 be the edge with the second smallest weight. By Kruskal's algorithm, e1e_1 is selected first. Edge e2e_2 cannot form a cycle with e1e_1 alone because a cycle requires at least 3 edges in a simple graph. Thus e2e_2 is always selected.
  • (B) TRUE: Consider the edges with the third and fourth smallest weights (e3e_3 and e4e_4). Kruskal's algorithm considers e1,e2,e3,e4e_1, e_2, e_3, e_4 in order. The only way e3e_3 could be rejected is if e1,e2,e3e_1, e_2, e_3 form a 3-cycle (K3K_3). If that happens, e1e_1 and e2e_2 already span those 3 vertices. Edge e4e_4 cannot form a cycle using only e1e_1 and e2e_2 without involving e3e_3. Therefore, e4e_4 must connect to at least one new vertex, so it cannot create a cycle and must be chosen. Thus, at least one of e3,e4e_3, e_4 is always part of the MST.
  • (C) TRUE: This is the Cut Property: for any non-trivial partition (S,V∖S)(S, V \setminus S), the edge of strictly minimum weight crossing the cut must belong to the unique MST.
  • (D) FALSE: When all edge weights in a connected graph are distinct, the minimum spanning tree is unique.

Therefore, (A), (B), and (C) are TRUE.

Final answer

Options (A), (B), (C)

Common trap

Claiming GG can have multiple MSTs when edge weights are distinct.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2022 Computer Science and Information Technology (CS)
Question
49 of 65
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.