Data Structures & AlgorithmsHardCodeforces Div 2 · ICPC regional

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

  1. A. 12
  2. B. 5
  3. C. 9
  4. D. 7

Correct answer: B. 5

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