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?
- A. Both sides have equal size
- B. The graph is connected
- C. Every vertex has degree exactly two
- 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
- Problem: Which algorithm solves the single-source shortest path problem in O(E) time on a directed acyclic graph with arbitrary edge…
- Problem: Which statement about the Edmonds-Karp algorithm's number of augmentations is correct?
- Problem: Which problem is solved by the Floyd-Warshall algorithm in the presence of negative edges but no negative cycle?
- Problem: What is the running time of Prim's algorithm with a binary heap on a connected graph with V vertices and E edges?
- Problem: What is the maximum number of edges in a simple planar graph with V >= 3 vertices?
- Problem: Which theorem states that every tree on n vertices has exactly n - 1 edges?