Data Structures & AlgorithmsHardGATE CS · ICPC regional

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

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

Correct answer: C. 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