Data Structures & AlgorithmsVery hardGATE CS

What is the minimum number of edges that must be deleted from the undirected graph with edges A–B, A–C, A–D, A–E, B–D, B–F, C–E, C–F, D–E, D–F to make it bipartite?

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

Correct answer: C. 2

Deleting edges to reach a bipartite graph = keeping a maximum cut. The best 2-colouring cuts 8 of the 10 edges, so 2 must go. Counting independent cycles (E − V + 1 = 5) is not the answer.

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic