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)?

  1. A. Computing a Hamiltonian cycle
  2. B. Finding a minimum spanning tree
  3. C. Checking whether a bipartite matching of cells is perfect
  4. 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

Exams that ask this topic