Data Structures & AlgorithmsHardICPC regional · GATE CS top band
Undirected weighted graph on vertices A, B, C, D, E with edges A–B (8), A–C (3), A–D (6), A–E (2), B–D (1), B–E (6), C–D (1), C–E (2), D–E (6). Over all paths from B to A, minimise the largest single edge weight used on the path. What is that minimum possible largest edge weight?
- A. 8
- B. 3
- C. 5
- D. 2
Correct answer: D. 2
The minimax (bottleneck) value is 2, which equals the largest edge on the MST path between the two vertices. The shortest-path bottleneck is 3, so minimising path length is not the same as minimising the largest edge.
Practise more Trees, Graphs, Recursion and Dynamic Programming questionsTrees, Graphs, Recursion and Dynamic Programming: notes and key points
More Trees, Graphs, Recursion and Dynamic Programming questions
- 2 × 3 sliding puzzle with tiles 1 to 5 and one blank (shown as ). Current board: 4 2 3 / 5 1. Goal board: 1 2 3 / 4 5 . A move slides a…
- Array A = [8, 2, 9, 4, 9, 2, 7, 8, 9] (indices 0 to 8). Count the non-empty subsets of positions (each position used at most once, subsets…
- Undirected graph on vertices A, B, C, D, E, F, G with edges A–C (1), A–D (1), B–C (1), B–G (1), C–D (1), C–F (1), C–G (1), D–G (1), E–F…
- Array A = [9, 3, 7, 1, 7, 4, 3]. Over all non-empty contiguous subarrays, what is the maximum value of the XOR of the elements in the…
- A binary trie of 6-bit numbers stores the set S = [61, 52, 1, 25, 43, 9, 48]. For the query x = 45, what is the maximum value of x XOR s…
- Undirected simple graph on vertices A, B, C, D, E, F, G with edges A–C (1), A–D (1), B–C (1), B–D (1), B–E (1), B–F (1), B–G (1), C–D (1)…