Skip to content

aureooms-research/polyominoes

Repository files navigation

Enumeration of Polyominoes

ENUMARETE DAZ LATTICE ANIMALZ

License Build GitHub issues

pypy3 table.py --format md --max-order 13
order fixed one-sided free chiral free without holes A217595
0 1 1 1 0 1 1
1 1 1 1 0 1 1
2 2 1 1 0 1 0
3 6 2 2 0 2 1
4 19 7 5 2 5 1
5 63 18 12 6 12 2
6 216 60 35 25 35 4
7 760 196 108 88 107 7
8 2725 704 369 335 363 12
9 9910 2500 1285 1215 1248 35
10 36446 9189 4655 4534 4460 55
11 135268 33896 17073 16823 16094 144
12 505861 126759 63600 63159 58937 335
13 1903890 476270 238591 237679 217117 710

Dev

Using virtualenv

make env
source .env/bin/activate.fish
pip install vmprof

Profiling

With virtualenv activated:

pypy3 -m vmprof -o profiler.log -- table.py ...

vmprofshow --prune-percent 3 profiler.log | less -r

Upload to vmprof.com

python -m vmprof.upload --web-auth ... profiler.log

Related

Credits

The code was originally derived from tesseralis/polyomino.