Perfectly random sampling (1): domino shuffling algorithm on Aztec diamonds

Example:

Requirements:

  1. cairocffi and matplotlib for drawing random tilings.
  2. ImageMagick for making GIF animations.

Usage

To sample a random tiling of \(AZ(n)\), run

python random_tiling.py -size imgsize -order n -prog matplotlib

To make GIF animation of domino shuffling algorithm up to \(AZ(n)\), run

python domino_shuffling_animation.py -size imgsize -order n

Windows users need to manually set the variable CONVERTER to be the path to your convert.exe.

当前网速较慢或者你使用的浏览器不支持博客特定功能,请尝试刷新或换用Chrome、Firefox等现代浏览器