Data Structures & AlgorithmsHardCodeforces Div 2 C · ICPC regional

Undirected weighted graph on vertices 0 to 4 with edges: 1–4 (1), 0–3 (14), 0–1 (9), 1–3 (13), 2–4 (12), 2–3 (13), 3–4 (11), 0–2 (3), 1–2 (11). Over all paths from 0 to 4, what is the smallest possible value of the heaviest edge on the path (the bottleneck or minimax path weight)?

  1. A. 10
  2. B. 24
  3. C. 3
  4. D. 9

Correct answer: D. 9

Adding edges in increasing weight until 0 and 4 become connected gives bottleneck 9. The minimum total path weight (10), the MST weight (24) and the lightest edge at 0 (3) answer different questions.

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic