GATE Computer ScienceVery hardGATE CS (PYQ pattern)
A flow network has edges s→a 10, s→b 8, a→c 4, a→d 3, b→d 5, b→c 2, a→b 3, c→t 9, d→t 8; its maximum flow value is 14. How many different minimum s–t cuts does it have (partitions (S, T) with s ∈ S, t ∈ T whose forward capacity is 14)?
- A. 1
- B. 3
- C. 2
- D. 4
Correct answer: C. 2
Checking all 16 choices of S ⊇ {s}: S = {s, a, b} has forward edges a→c 4, a→d 3, b→d 5, b→c 2 = 14, and S = {s, a, b, d} has a→c 4, b→c 2, d→t 8 = 14. Every other S exceeds 14 (e.g. {s} gives 18, {s, a, b, c, d} gives 17). So there are exactly 2 minimum cuts.
More Algorithms questions
- A network has capacities s→u 100, s→v 50, u→v 1, u→t 50, v→t 100. Ford–Fulkerson may choose ANY augmenting path in the residual graph…
- A bipartite graph has left vertices L0–L8 and right vertices R0–R6, with adjacency L0:{R0}, L1:{R0,R1}, L2:{R0,R1}, L3:{R0,R1}…
- Johnson's algorithm reweights the directed graph with edges A→B 3, A→C 8, B→D −4, C→B 10, D→C −5, D→E 2, E→A 6, C→E 1. The potentials h(v)…
- An activity-on-arc project has events S, A, B, C, D, E, T and activities (duration): S→A 3, S→B 2, A→C 4, B→C 6, A→D 2, C→D 3, C→E 5, D→E…
- Prim's algorithm starts at A on a graph with edges AB 6, AC 1, AD 5, BC 5, BE 3, CD 7, CE 8, CF 4, DF 2, EF 9, FG 10, EG 11, DG 12, AG 13…
- A directed graph on vertices 0–4 has edges (weight): 0→1 2, 1→2 3, 0→2 9, 2→3 1, 1→3 8, 3→4 2, 2→4 7, 0→3 12, 1→4 15. What is the minimum…