Data Structures & AlgorithmsHardICPC regional · matching theory

Problem: What does the Hall condition require for a bipartite graph to have a matching covering the left side?

  1. A. Both sides have equal size
  2. B. The graph is connected
  3. C. Every vertex has degree exactly two
  4. D. Every subset S of the left side has at least |S| neighbours on the right

Correct answer: D. Every subset S of the left side has at least |S| neighbours on the right

Hall's theorem says this neighbourhood condition is necessary and sufficient for a left-saturating matching.

More Coding Interview Problems questions

Exams that ask this topic