Dynamic Programming21 sections · 916 units
Open in Course

Tri Tiling - Walkthrough

Non-standard grid

Tile a 3×n3 \times n grid with 1×21 \times 2 dominoes. The width is fixed and small (33 cells). Profile has 33 bits. Only 88 possible masks. Enumerate transitions by hand or compute programmatically.

Many masks are unreachable. For 3×n3 \times n, only certain patterns work. The recurrence simplifies. Find: f[n]=4f[n2]f[n4]f[n] = 4f[n-2] - f[n-4] (or similar). Small width allows closed-form recurrences. Width 33 is small enough that transitions can be enumerated by hand. Find the pattern in the recurrence.