Data Structures & AlgorithmsHardCodeforces Div 2 C · ICPC regional

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

  1. A. 14
  2. B. 34
  3. C. 8
  4. D. 5

Correct answer: C. 8

Adding edges in increasing weight until 0 and 6 become connected gives bottleneck 8. The minimum total path weight (14), the MST weight (34) and the lightest edge at 0 (5) answer different questions.

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic