Data Structures & AlgorithmsHardICPC regional · GATE CS top band

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

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

Correct answer: A. 4

The minimax (bottleneck) value is 4, which equals the largest edge on the MST path between the two vertices. The shortest-path bottleneck is 5, 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