Article · Wikipedia archive · Last revised Jun 7, 2026

Aztec diamond

In combinatorial mathematics, an Aztec diamond of order n consists of all squares of a square lattice whose centers (x,y) satisfy |x| + |y| ≤ n. Here n is a fixed integer, and the square lattice consists of unit squares with the origin as a vertex of 4 of them, so that both x and y are half-integers.

Last revised
Jun 7, 2026
Read time
≈ 7 min
Length
1,510 w
Citations
8
Source
An Aztec diamond of order 4 source ↗

In combinatorial mathematics, an Aztec diamond of order n consists of all squares of a square lattice whose centers (x,y) satisfy |x| + |y| ≤ n. Here n is a fixed integer, and the square lattice consists of unit squares with the origin as a vertex of 4 of them, so that both x and y are half-integers.1

One of 1024 possible domino tilings of an order 4 Aztec diamond source ↗
A domino tiling of an order-50 Aztec diamond, chosen uniformly at random. The four corners of the diamond outside of the roughly circular area are "frozen". source ↗

The Aztec diamond theorem states that the number of domino tilings of the Aztec diamond of order n is 2n(n+1)/2.2 The Arctic Circle theorem says that a random tiling of a large Aztec diamond tends to be frozen outside a certain circle.3

It is common to color the tiles in the following fashion. First consider a checkerboard coloring of the diamond. Each tile will cover exactly one black square. Vertical tiles where the top square covers a black square, is colored in one color, and the other vertical tiles in a second. Similarly for horizontal tiles.

Knuth has also defined Aztec diamonds of order n + 1/2.4 They are identical with the polyominoes associated with the centered square numbers.

Non-intersecting paths

Something that is very useful for counting tilings is looking at the non-intersecting paths through its corresponding directed graph. We define the graph's vertices to lie on the left and right edges of the squares, centered vertically (so y = k + 1 2 {\displaystyle y=k+{\frac {1}{2}}} for an integer k). The graph's directed edges are defined by the 3 vectors (1,1), (1,0) and (1,-1): For each vertex, if addition of a vector leads to another vertex and the connecting line segment lies within the Aztec diamond, there is a corresponding directed edge. Define the sources to be the vertices of negative y coordinate on the left edges of the Aztec diamond, and the sinks to be the vertices of negative y coordinate on the right edges of the Aztec diamond. Then a tiling defines a tuple of non-intersection paths by starting at each source and repeatedly applying the following rules:

  • choose (1,1) at the bottom left vertex of a vertical tile,
  • choose twice (1,0) at the left vertex of a horizontal tile,
  • choose (1,-1) at a top left vertex of a vertical tile.

These movements are similar to Schröder paths. For example, consider an Aztec diamond of order 2, and after drawing its directed graph we can label its sources a a , a 2 {\displaystyle a_{a},a_{2}} and its sinks b 1 , b 2 {\displaystyle b_{1},b_{2}} . On its directed graph, we can count the directed paths from a i {\displaystyle a_{i}} to b j {\displaystyle b_{j}} for each pair ( i , j ) { 1 , 2 } × { 1 , 2 } {\displaystyle (i,j)\in \{1,2\}\times \{1,2\}} . Call C i , j {\displaystyle C_{i,j}} the result of each counting. This gives us a matrix,

P 2 = [ C 1 , 1 C 1 , 2 C 2 , 1 C 2 , 2 ] = [ 6 2 2 2 ] . {\displaystyle P_{2}={\begin{bmatrix}C_{1,1}&C_{1,2}\\C_{2,1}&C_{2,2}\\\end{bmatrix}}={\begin{bmatrix}6&2\\2&2\\\end{bmatrix}}.}

Then by the Lindström-Gessel-Viennot lemma5, the number of non-intersecting paths for order 2 is

det ( P 2 ) = 12 4 = 8 = 2 2 ( 2 + 1 ) / 2 , {\displaystyle (P_{2})=12-4=8=2^{2(2+1)/2},}

the same as the number of domino tilings. More generally, det ( P n ) = {\displaystyle (P_{n})=} number of non-intersecting paths from sources to sinks.

It has been shown by Eu and Fu that Schröder paths and the tilings of the Aztec diamond are in bijection.6 Hence, finding the determinant of the path matrix P n {\displaystyle P_{n}} will give us the number of tilings for the Aztec diamond of order n.

Another way to determine the number of tilings of an Aztec diamond is using Hankel matrices of large and small Schröder numbers,6 using the method from Lindstrom-Gessel-Viennot again.5 Finding the determinant of these matrices gives us the number of non-intersecting paths of small and large Schröder numbers, which is in bijection with the tilings. The small Schröder numbers are { 1 , 1 , 3 , 11 , 45 , } = { y 0 , y 1 , y 2 , y 3 , y 4 , } {\displaystyle \{1,1,3,11,45,\cdots \}=\{y_{0},y_{1},y_{2},y_{3},y_{4},\cdots \}} and the large Schröder numbers are { 1 , 2 , 6 , 22 , 90 , } = { x 0 , x 1 , x 2 , x 3 , x 4 , } {\displaystyle \{1,2,6,22,90,\cdots \}=\{x_{0},x_{1},x_{2},x_{3},x_{4},\cdots \}} , and in general our two Hankel matrices will be

H n = [ x 1 x 2 x n x 2 x 3 x n + 1 x n x n + 1 x 2 n 1 ] {\displaystyle H_{n}={\begin{bmatrix}x_{1}&x_{2}&\cdots &x_{n}\\x_{2}&x_{3}&\cdots &x_{n+1}\\\vdots &\vdots &&\vdots \\x_{n}&x_{n+1}&\cdots &x_{2n-1}\\\end{bmatrix}}} and G n = [ y 1 y 2 y n y 2 y 3 y n + 1 y n y n + 1 y 2 n 1 ] {\displaystyle G_{n}={\begin{bmatrix}y_{1}&y_{2}&\cdots &y_{n}\\y_{2}&y_{3}&\cdots &y_{n+1}\\\vdots &\vdots &&\vdots \\y_{n}&y_{n+1}&\cdots &y_{2n-1}\\\end{bmatrix}}}

where det ( H n ) = 2 n ( n + 1 ) / 2 {\displaystyle (H_{n})=2^{n(n+1)/2}} and det ( G n ) = 2 n ( n 1 ) / 2 {\displaystyle (G_{n})=2^{n(n-1)/2}} where n 1 {\displaystyle n\geq 1} (It also true that det ( H n 0 ) = 2 n ( n 1 ) / 2 {\displaystyle (H_{n}^{0})=2^{n(n-1)/2}} where this is the Hankel matrix like H n {\displaystyle H_{n}} , but started with x 0 {\displaystyle x_{0}} instead of x 1 {\displaystyle x_{1}} for the first entry of the matrix in the top left corner).

Generating valid tilings

Finding valid tilings of the Aztec diamond involves the solution of the underlying set-covering problem. Let D = { d 1 , d 2 , , d n } {\displaystyle D=\{d_{1},d_{2},\dots ,d_{n}\}} be the set of 2X1 dominoes where each domino in D may be placed within the diamond (without crossing its boundaries) when no other dominoes are present. Let S = { s 1 , s 2 , , s m } {\displaystyle S=\{s_{1},s_{2},\dots ,s_{m}\}} be the set of 1X1 squares lying within the diamond that must be covered. Two dominoes within D can be found to cover any boundary square within S, and four dominoes within D can be found to cover any non-boundary square within S.

Define c ( s i ) D {\displaystyle c(s_{i})\subset D} to be the set of dominoes that cover square s i {\displaystyle s_{i}} , and let x i {\displaystyle x_{i}} be an indicator variable such that x i = 1 {\displaystyle x_{i}=1} if the i t h {\displaystyle i^{th}} domino is used in the tiling, and 0 otherwise. With these definitions, the task of tiling the Aztec diamond may be reduced to a constraint satisfaction problem formulated as a binary integer program:

min 1 i m 0 x i {\displaystyle \min \sum _{1\leq i\leq m}0\cdot x_{i}}

Subject to: i c ( s i ) x i = 1 , {\displaystyle \sum _{i\in c(s_{i})}x_{i}=1,} for 1 i m {\displaystyle 1\leq i\leq m} , and x i { 0 , 1 } {\displaystyle x_{i}\in \{0,1\}} .

The i t h {\displaystyle i^{th}} constraint guarantee that square s i {\displaystyle s_{i}} will be covered by a single tile, and the collection of m {\displaystyle m} constraints ensures that each square will be covered (no holes in the covering). This formulation can be solved with standard integer programming packages. Additional constraints can be constructed to force placement of particular dominoes, ensure a minimum number of horizontal or vertically-oriented dominoes are used, or generate distinct tilings.

An alternative approach is to apply Knuth's Algorithm X to enumerate valid tilings for the problem.

References

References

  1. Stanley, Richard P. (1999), Enumerative combinatorics. Vol. 2, Cambridge Studies in Advanced Mathematics, vol. 62, Cambridge University Press, ISBN 978-0-521-56069-6, MR 1676282, archived from the original on 2008-10-05, retrieved 2008-11-18
  2. Elkies, Noam; Kuperberg, Greg; Larsen, Michael; Propp, James (1992), "Alternating-sign matrices and domino tilings. I", Journal of Algebraic Combinatorics, 1 (2): 111–132, doi:10.1023/A:1022420103267, ISSN 0925-9899, MR 1226347
  3. Jockusch, William; Propp, James; Shor, Peter (1998), Random Domino Tilings and the Arctic Circle Theorem, arXiv:math/9801068, Bibcode:1998math......1068J
  4. Knuth, Donald E. (2019), "Pre-Fascicle 5c (section 7.2.2.1, Dancing Links)", The Art of Computer Programming, vol. 4, p. 93
  5. Majumdar, Diptapriyo. "Advance Graph Algorithms: Lemma of Gessel Viennot" (PDF). Archived (PDF) from the original on 2018-03-05. Retrieved 22 April 2014.
  6. Eu, Sen-Peng; Fu, Tung-Shan (2005). "A Simple Proof of the Aztec Diamond". Electron. J. Combin., 12:Research Paper. The Electroninc Journal of Combinatorics: 0412041. CiteSeerX 10.1.1.214.7065.
External links