GATE Computer ScienceVery hardGATE CS (PYQ pattern)
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 (backward edges included). What is the largest number of augmentations it can be forced to perform before stopping?
- A. 3
- B. 100
- C. 150
- D. 101
Correct answer: D. 101
The maximum flow is 101 (the cut {s, u} | {v, t} has capacity 50 + 1 + 50). Each augmentation raises the flow by an integer ≥ 1, so at most 101 augmentations occur, and 101 is reachable: alternate s→u→v→t and s→v→u→t (cancelling u→v) 50 times each, pushing 1 every time, then s→u→v→t once more. Edmonds–Karp needs only 3.
More Algorithms questions
- 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…
- The directed graph on vertices 0–7 has edges 0→1, 1→2, 2→0, 2→3, 4→3, 4→5, 5→4, 6→5, 3→7, 7→3. For how many ordered pairs (u, v) with u ≠…