Data Structures & AlgorithmsHardICPC regional · GATE CS top band

Undirected weighted graph on vertices A, B, C, D, E with edges A–B (8), A–C (3), A–D (6), A–E (2), B–D (1), B–E (6), C–D (1), C–E (2), D–E (6). Over all paths from B to A, minimise the largest single edge weight used on the path. What is that minimum possible largest edge weight?

  1. A. 8
  2. B. 3
  3. C. 5
  4. D. 2

Correct answer: D. 2

The minimax (bottleneck) value is 2, which equals the largest edge on the MST path between the two vertices. The shortest-path bottleneck is 3, so minimising path length is not the same as minimising the largest edge.

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic