Data Structures & AlgorithmsHardICPC regional · GATE CS top band

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

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

Correct answer: A. 3

The minimax (bottleneck) value is 3, 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