Data Structures & AlgorithmsHardCodeforces Div 2 C · ICPC regional

Undirected weighted graph on vertices 0 to 4 with edges: 0–1 (8), 0–3 (5), 1–3 (6), 2–3 (7), 1–2 (10), 3–4 (15). 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. 15
  2. B. 20
  3. C. 33
  4. D. 5

Correct answer: A. 15

Adding edges in increasing weight until 0 and 4 become connected gives bottleneck 15. The minimum total path weight (20), the MST weight (33) and the lightest edge at 0 (5) answer different questions.

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic