Data Structures & AlgorithmsHardCodeforces Div 2 · ICPC regional

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

  1. A. 6
  2. B. 8
  3. C. 7
  4. D. 10

Correct answer: A. 6

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