Data Structures & AlgorithmsVery hardICPC regional · GATE CS top band

Undirected simple graph on vertices A, B, C, D, E, F, G with edges A–D (1), B–C (1), B–E (1), C–D (1), C–E (1), D–E (1), D–G (1), E–G (1), F–G (1) (weights ignored). What is the minimum number of VERTICES whose deletion (together with their incident edges) leaves a bipartite graph?

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

Correct answer: D. 1

Brute force over vertex subsets gives 1 deleted vertices; deleting edges instead needs 2, which is a different quantity. Confusing vertices with edges is the trap.

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic