Data Structures & AlgorithmsHardCodeforces Div 2 C · ICPC regional

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

  1. A. 15
  2. B. 28
  3. C. 53
  4. D. 4

Correct answer: A. 15

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

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic