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)?

  1. A. 7
  2. B. 8
  3. C. 10
  4. 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

Exams that ask this topic