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?
- A. Hall's marriage theorem
- B. Ramsey's theorem
- C. Wilson's theorem
- 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
- Problem: What is the main idea of the 'parallel binary search' technique?
- Problem: Which structure gives fast membership tests of substrings after O(n) construction (for a fixed alphabet)?
- Problem: What is the expected number of rounds of a randomised min-cut (Karger's algorithm) needed for a graph with n vertices to find a…
- Problem: What does the term 'amortised analysis' mean?
- Problem: What is the complexity of computing the number of inversions using a Fenwick tree over n distinct values?
- Problem: Which operation is the bottleneck of the naive recursive Fibonacci algorithm?