GATE Computer ScienceVery hardGATE CS (PYQ pattern)
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}, L4:{R2,R3}, L5:{R2,R3}, L6:{R2,R3,R4}, L7:{R4,R5}, L8:{R4,R5,R6}. What is the size of a maximum independent set (no two vertices joined by an edge, in the whole graph)?
- A. 7
- B. 8
- C. 10
- D. 9
Correct answer: D. 9
The maximum matching has size 7 (all seven right vertices can be matched). By König's theorem the minimum vertex cover also has 7 vertices, so the maximum independent set has |V| − 7 = 16 − 7 = 9 vertices (here simply all nine left vertices).
More Algorithms questions
- 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 ≠…
- A transformation is applied to a connected undirected graph with positive edge weights, and the result is compared with the original…