Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

GATE | Gate IT 2007 | Question 3

  • Last Updated : 14 Feb, 2018

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

Answer: (D)


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

My Personal Notes arrow_drop_up
Recommended Articles
Page :