GATE | Gate IT 2007 | Question 3
Consider a weighted undirected graph with positive edge weights and let uv be an edge in the graph. It is known that the shortest path from the source vertex s to u has weight 53 and the shortest path from s to v has weight 65. Which one of the following statements is always true?
(A) weight (u, v) < 12 (B) weight (u, v) ≤ 12
(C) weight (u, v) > 12
(D) weight (u, v) ≥ 12
The minimum weight happens when (S,U) + (U,V) = (S,V)
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.
Else (S,U) + (U,V) >= (S,V)
Given (S,U) = 53, (S,V) = 65
53 + (U,V) >= 63
(U,V) >= 12.
This solution is contributed by Anil Saikrishna Devarasetty
Quiz of this Question