Data Structures & AlgorithmsModerateICPC regional · matching theory

Problem: Which theorem guarantees a perfect matching in a bipartite graph when Hall's condition holds for the smaller side?

  1. A. Hall's marriage theorem
  2. B. Ramsey's theorem
  3. C. Wilson's theorem
  4. D. Cayley's formula

Correct answer: A. Hall's marriage theorem

Hall's theorem gives the matching when every subset of one side has enough neighbours.

More Coding Interview Problems questions

Exams that ask this topic