Skip to content
GATEiit

GATE CSE 2017 Session 1 Q36: Distinct positive weights: unique MST? unique shortest paths?

Syllabus topic: Graph traversals, minimum spanning trees and shortest paths

Question

Let G=(V,E) be any connected undirected edge-weighted graph. The weights of the edges in E are positive and 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?

Try it: multiple choice: exactly one correct option

Select one option
Wrong answer costs 2/3 mark in GATE.
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.

Concept notes

Loading notes…

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

WhatsAppDownload image

Source: official GATE 2017 Session 1 CS question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key