Data Structures & AlgorithmsVery hardGATE CS · Advanced

In a bipartite graph the left vertices are L1–L6 and the right vertices are R1–R6, with the edges L1–R3, L1–R5, L1–R6, L2–R3, L3–R2, L3–R5, L4–R3, L4–R4, L5–R2, L5–R4, L6–R5. What is the size of a minimum vertex cover?

  1. A. 4
  2. B. 5
  3. C. 6
  4. D. 7

Correct answer: B. 5

By Konig's theorem the minimum vertex cover equals the maximum matching, found by augmenting paths: 5. The greedy matching (first free neighbour for each left vertex in order) only reaches 4, and 6 would need a perfect matching.

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic