Chapter 1: The Trap
In 1994, a Russian Olympiad problem asked to tile a grid with dominoes…
In 1994, a Russian Olympiad problem asked to tile a grid with dominoes…
The 3xM board destroys the simple Fibonacci illusion. To solve it, we must embrace…
To tile a room with a billion columns, we have to abandon the standard ‘for’ loop. By mapping edge transitions into a Transfer Matrix, we unlock the cheat code of logarithmic time.
When a 6563x6563 transfer matrix threatens to melt our CPU, we abandon linear algebra entirely. By reverse-engineering the sequence, we pull off the ultimate algorithmic heist.
When computer science fails to tile a 64x64 board, we must abandon the grid entirely. Enter graph theory, adjacency matrices, and a formula that looks like it belongs in quantum physics.
To understand Pieter Kasteleyn’s formula, we must dissect the adjacency matrix. We reveal how a 2D checkerboard is just two 1D strings crossing, and exactly how π and trigonometry enter the equation.
Kasteleyn’s formula is a mathematical masterpiece. But if you try to code it, you will immediately crash into the physical limitations of computer hardware. Plus, a detour into the thermodynamic limit.
To calculate a massive trigonometric product without losing precision, we have to stop using numbers and start using algebra. Enter Roots of Unity, Cyclotomic Polynomials, and the limits of RAM.
When exact polynomials devour your RAM, you have to change the universe the math operates in. We introduce Finite Fields, 64-bit primes, and the ultimate hardware-sympathetic loop.
Our finite field engine is blazing fast, but it only gives us a tiny fragment of the answer. By using the Chinese Remainder Theorem and maxing out our CPU cores, we assemble the final, massive integer.