mapFolding albums
Each album lists representative foldings of one map. The Python package mapFolding makes and reads these albums.
Files
The filename is the letter p followed by the length of each dimension: p3x4.album is the album
of the 3 × 4 map.
An album is a CSV file in UTF-8 without a header. Each record is one folding. The leaves of the map are numbered from 0, and a record lists the leaf in each pile, starting with the first pile.
Representatives
An album does not list every folding. In each record, leaf 0 is in the first pile, and leaf 1 comes before leaf 2. The number of records in an album determines the total number of foldings of the map:
| Map | Total foldings |
|---|---|
| Two or more dimensions, each of length 2 (2 × 2, 2 × 2 × 2, ...) | records × 2ⁿ × n!, where n is the number of dimensions |
| Every other map with at least 3 leaves | records × 2 × leaves |
These totals match the values in the OEIS: A000136,
A001415, A001416,
A001417, A001418, and
A195646. The formulas do not apply to the two maps with 2 leaves,
p2.album and p1x2.album. Each has 1 record and 2 foldings.
- Downloads last month
- 35