Skip to content
Related Articles

Related Articles

Improve Article

GATE | GATE-CS-2016 (Set 1) | Question 48

  • Difficulty Level : Medium
  • Last Updated : 19 Nov, 2018

Consider the weighted undirected graph with 4 vertices, where the weight of edge {i, j} g is given by the entry
Wij in the matrix W


The largest possible integer value of x, for which at least one shortest path between some pair of vertices will contain the edge with weight x is ________

Note : This question was asked as Numerical Answer Type.

(A) 8
(B) 12
(C) 10
(D) 11

Answer: (B)

Explanation: Let vertices be 0, 1, 2 and 3.

x directly connects 2 to 3. The shortest path (excluding x) from 2 to 3 is of weight 12 (2-1-0-3).

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.

My Personal Notes arrow_drop_up
Recommended Articles
Page :