GATE Computer ScienceHardGATE CS (PYQ pattern)
Which of the following statements about minimum spanning trees of a connected weighted undirected graph is/are correct? I. If all edge weights are distinct, the MST is unique. II. If the MST is unique, all edge weights are distinct. III. The lightest edge of the graph belongs to at least one MST. IV. An edge that is the strictly heaviest edge on some cycle belongs to no MST.
- A. I and III only
- B. I, II and IV only
- C. III and IV only
- D. I, III and IV only
Correct answer: D. I, III and IV only
I follows from the cut property with strict inequalities, III from the cut property, and IV from the cycle property (a strict heaviest edge on a cycle can always be swapped out). II is false: a tree with two equal-weight edges can still be the only MST, e.g. a path graph with two equal edges.
More Algorithms questions
- A graph has V = 1000 vertices and E = 250000 edges. Two Dijkstra implementations are compared by counting basic steps (ignoring…
- What is the smallest m such that every simple undirected graph with 12 vertices and m edges is 2-connected (connected, and stays connected…
- Bellman–Ford is run from S on a directed graph with edges S→A 2, A→B 3, B→C −4, C→A 0, C→D 5, D→E 1, E→H 2, S→F 7, F→G −2, S→I 4, I→F 1…
- What is the smallest possible value of the largest edge weight on a path from E to D in the graph with edges AB 6, AC 1, AD 5, BC 5, BE 3…
- Kahn's topological sort uses a min-priority queue, so among available vertices the smallest label is always chosen. The DAG has edges 1→3…
- A DAG has edges s→a, s→b, a→b, a→c, a→d, b→c, b→d, c→d, c→e, c→f, d→e, d→f, e→f, e→t, f→t. How many s–t paths pass through exactly one of…