GATE Computer ScienceVery hardGATE CS (PYQ pattern)

What is the smallest possible value of the largest edge weight on a path from E to D in the graph with edges AB 6, AC 1, AD 5, BC 5, BE 3, CD 7, CE 8, CF 4, DF 2, EF 9, FG 10, EG 11, DG 12, AG 13?

  1. A. 4
  2. B. 5
  3. C. 6
  4. D. 9

Correct answer: B. 5

The minimum bottleneck path between two vertices is realised on the MST. The MST path from E to D is E–B (3), B–C (5), C–F (4), F–D (2), whose largest edge is 5; no edge of weight below 5 can connect E to D, since edges of weight at most 4 leave E in a different component.

More Algorithms questions

Exams that ask this topic