Data Structures & AlgorithmsVery hardGATE CS · ICPC regional

An undirected graph has the vertices A, B, E, F, G, I, J, L, N, R and the edges G–J, G–B, G–R, J–F, J–R, F–L, F–B, F–N, F–E, L–N, L–R, A–R, A–I, A–E, B–R, B–I, B–E, N–I, R–E, I–E. What is the size of a maximum independent set (a largest set of vertices with no edge between any two of them)?

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

Correct answer: D. 4

Exhaustive search over subsets gives 4. Picking the currently lowest-degree vertex and deleting its neighbourhood (a common heuristic) gives 3, and n minus the maximum matching gives 5, which is not a general identity.

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic