Data Structures & AlgorithmsVery hardProduct-company placement

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

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

Correct answer: C. 2

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

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic