WOLFRAM|DEMONSTRATIONS PROJECT

Placing Dominoes on a Checkerboard

​
size of board
3
4
5
6
7
8
9
10
11
12
show maximum domino placement
show graph of unblocked squares
Unblocked white squares: 32
Unblocked black squares: 30
Actual maximum number of dominoes: 30
A classic puzzle asks for the placement of as many disjoint dominoes (1×2 tiles) as possible onto a checkerboard from which some squares have been removed. The problem can be solved by setting up a bipartite graph where one part consists of the white unblocked squares, the other consists of the black unblocked squares, and edges correspond to adjacency of squares. Then a maximum matching (a collection of disjoint edges that is as large as possible) in this graph leads to a solution of the domino problem. In this Demonstration, the blocked squares are red, the graph is shown in blue, and the maximum domino array is shown in yellow.
To add or remove blocked squares,
⌘
-click or

-click a square.