Dalaoli on Math
Feature

What can a tangram make?

The tangram has only seven pieces, yet the shapes it can form are countless. We used Knuth's Dancing Links exact-cover algorithm to enumerate a few families completely: which pentagons the tangram can form, which hexagons, and which shape has the most tilings. Every shape comes with all of its tilings.

The shape with the most tilings: 47
The pentagon with the most tilings: 34
The hexagon with the most tilings: 34

Highlights

What is a snug shape?

Divide the plane into a grid of unit squares (the unit is the side of the tangram's square piece) and cut each square along both diagonals into 4 small isosceles right triangles. Every tangram piece is made of these small triangles: 2 for a small triangle, 4 each for the medium triangle, square and parallelogram, and 8 for a large triangle. That is 32 in total, for a total area of 8.

A shape that is also made of these small triangles is called snug. Every edge of every piece then lies on a grid line or a diagonal, and pieces meet edge to edge. Whether a snug shape can be tiled, and in how many ways, becomes an exact-cover problem: cover each of the 32 small triangles exactly once and use each of the 7 pieces exactly once. That is exactly what Dancing Links is good at.

The computation uses a grid subdivided once more, so tilings in which a piece is shifted half a cell along another piece's diagonal edge are found too, and the counts are complete.

Some tilings are not snug: a piece slides along another piece's edge by an irrational distance (such as √2 − 1), and its vertices leave the grid. Such shapes are called loose. No fixed grid can represent them, so they need exact geometry over ℚ[√2]. The 31 loose pentagons on the pentagon page were found this way.

“Essentially different” tilings

The exact-cover program counts raw solutions. The two large triangles are identical, and so are the two small ones, so swapping them gives another solution, and every tiling is counted 4 times. If the shape itself is symmetric (say, mirror-symmetric), a tiling and its rotated or reflected copy also count as one. Every count on this site is the number of essentially different tilings, with both kinds of duplicates removed:

essentially different tilings = raw solutions ÷ 4 ÷ symmetries of the shape

In the pictures, the two large triangles and the two small triangles get different shades only so the piece boundaries are easy to see.

large triangle medium triangle small triangle square parallelogram

Comments