Data Structures & AlgorithmsHardCodeforces Div 2 C · ICPC regional

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

  1. A. 3
  2. B. 47
  3. C. 1
  4. D. 2

Correct answer: D. 2

Adding edges in increasing weight until 0 and 7 become connected gives bottleneck 2. The minimum total path weight (3), the MST weight (47) and the lightest edge at 0 (1) answer different questions.

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic