GATE CSE 2017 Session 1 Q36: Distinct positive weights: unique MST? unique shortest paths?
- Algorithms
- 2 marks
- MCQ
- −2/3 if wrong
Syllabus topic: Graph traversals, minimum spanning trees and shortest paths
Question
Let be any connected undirected edge-weighted graph. The weights of the edges in are positive and distinct. Consider the following statements:
(I) Minimum Spanning Tree of is always unique.
(II) Shortest path between any two vertices of is always unique.
Which of the above statements is/are necessarily true?
Try it: multiple choice: exactly one correct option
Show answer and explanation
Answer: A (official GATE 2017 final answer key)
Concept used: Distinct edge weights force a unique MST, but two different paths can still have equal total weight.
First step: For (II), try a small graph where one edge's weight equals the sum of two other distinct weights on an alternative path.
Full step-by-step solution
Loading…
Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.
More questions on Graph traversals, minimum spanning trees and shortest paths
Every PYQ on this topic →Share this question
Source: official GATE 2017 Session 1 CS question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key
More Algorithms PYQs
- 2026 Session 1 · Q17Solve nested recurrences T1 = 4T1(n/2) + T2, T2 = 5T2(n/4) + log n
- 2026 Session 1 · Q41Shortest paths with at most k edges: two statements
- 2026 Session 1 · Q47Condition forcing a vertex into every minimum vertex cover
- 2026 Session 1 · Q49Cycle and cut properties of MSTs with distinct weights
- 2026 Session 1 · Q50Impossible DFS discovery/finish orderings for a DAG edge
- 2026 Session 1 · Q55Properties of 2-colorable (bipartite) graphs