GATE | GATE-CS-2017 (Set 1) | Question 37
Let G = (V, E) be any connected undirected edge-weighted graph. The weights of the edges in E are positive any distinct. Consider the following statements:
I. Minimum Spanning Tree of G is always unique. II. Shortest path between any two vertices of G is always unique.
Which of the above statements is/are necessarily true?
(A) I only
(B) II only
(C) both I and II
(D) neither I and II
Explanation: I. Minimum Spanning Tree of G is always unique – MST will wlways be distinct if the edges are unique so Correct
II. Shortest path between any two vertices of G is always unique – Shortest path between any two vertices can be same so incorrect
Therefore, option A is correct
We know that minimum spanning tree of a graph is always unique if all the weight are distinct, so statement 1 is correct.
Now statement 2 , this might not be true in all cases. Consider the graph.
There are two shortest paths from a to b (one is direct and other via node c) So statement 2 is false
Hence option a is correct.
Quiz of this Question
Attention reader! Don’t stop learning now. Practice GATE exam well before the actual exam with the subject-wise and overall quizzes available in GATE Test Series Course.
Learn all GATE CS concepts with Free Live Classes on our youtube channel.