Data Structures & AlgorithmsVery hardICPC regional · matching
Problem: Which problem asks for the minimum number of rectangles of size 1 x 2 needed to tile a board with some cells removed (domino tiling feasibility)?
- A. Computing a Hamiltonian cycle
- B. Finding a minimum spanning tree
- C. Checking whether a bipartite matching of cells is perfect
- D. Topological sort
Correct answer: C. Checking whether a bipartite matching of cells is perfect
Domino tilings of a grid correspond to perfect matchings of the cell adjacency graph, which is bipartite by colour.
More Coding Interview Problems questions
- Problem: What does the Hall condition require for a bipartite graph to have a matching covering the left side?
- 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?