mapFolding
Map folding, meanders, stamp folding, semi-meanders. Experiment with algorithm transformations and code optimization.
I don't know how to write a README.md. Furthermore, the package used to be focused on multidimensional map folding and tools for transforming the algorithm to experiment with optimizations or to explore the algorithm.
First, the tools for transforming algorithms became far more sophisticated and powerful than this package. So I moved them to astToolkit. But those got so sophisticated, that I create more than half of that package through another layer of meta-programming: astToolFactory.
Second, when I finally understood the connections between map folding and meanders, I added meanders to this package, and applied my transformation tools to that algorithm.
I used a weaker form of this package to compute new terms for OEIS A001415, "Number of ways of folding a 2 X n strip of stamps."
Finding stuff
- At the moment, almost every algorithm version eventually runs through "mapFolding/basecamp.py", so it's sort of an overview and you can work backwards to find more details.
- The directory "mapFolding/algorithms" only has "handmade" algorithms. Therefore, most logic for most computations is based on something in that directory.
- The directory "mapFolding/syntheticModules" has code that is generated by the transformation tools.
- Transformation functions are in "mapFolding/someAssemblyRequired."
- The directory "mapFolding/reference" has "reference" materials.
- "mapFolding/tests" has the tests, and I have tried to make it easy for you to add your versions of the algorithms to the tests. Is it actually easy? I'll say it this way: if you were to create your own subclass of
ast.ASTit would be impossible for you to add your subclass to all of theastmodule tests with just a few lines of code. In contrast, it is possible to fully test your algorithm with my tests by adding between 3 and 25 lines of code. So, yeah, it's easy.
Math and programming
I'm not a mathematician. I don't have training in or professional experience as a programmer. I'm not stupid: I'm ignorant.
Reference materials
A map-folding problem
Folding a strip of stamps
Multi-dimensional map-folding
A transfer matrix approach to the enumeration of plane meanders
- BibTeX citation. TeX Source with precise formulas for AI agents.
- DOI: 10.1088/0305-4470/33/34/301
- Free pre-print: arXiv:cond-mat/0008178
A new transfer-matrix algorithm for exact enumerations: self-avoiding polygons on the square lattice
- BibTeX citation. TeX Source with precise formulas for AI agents.
- DOI: 10.1088/1751-8113/45/11/115202
- Free pre-print: arXiv:1111.5877
Stamp Foldings, Semi-Meanders, and Open Meanders: Fast Generation Algorithms
Foldings and meanders
- BibTeX citation. TeX Source with precise formulas for AI agents.
- PDF: The Australasian Journal of Combinatorics
- Free pre-print: arXiv:1302.2025
Valid Orderings of Layers When Simple-Folding a Map
My recovery
Metadata
Release files for mapFolding 0.27.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mapfolding-0.27.0.tar.gz | 297.3 kB | Without provenance | Details for mapfolding-0.27.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mapfolding-0.27.0-py3-none-any.whl | Python 3 | none | any | Details for mapfolding-0.27.0-py3-none-any.whl |
Total release size: 675.9 kB
Release files / mapfolding-0.27.0.tar.gz
| Download URL | mapfolding-0.27.0.tar.gz |
|---|---|
| Size | 297.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33eec77a2fc6ac66c62a09f830abe26822866dfeb6f854c225aeb4787512a0d2
|
|
BLAKE2b-256 checksum How to use checksums |
8b785e07bb6e5892b6a392f88b2f4d19f0baa138b1c4e65c2e7c04bcfba8d4bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Release files / mapfolding-0.27.0-py3-none-any.whl
| Download URL | mapfolding-0.27.0-py3-none-any.whl |
|---|---|
| Size | 378.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a1985874efb1b1c5431069f4c5b26b5a37df4fc174a0bb382927661084bc4d88
|
|
BLAKE2b-256 checksum How to use checksums |
2cf91669be0215f3f5b352590d4248896bf279a21797bf5779c5cd102b01f0a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Security for mapFolding 0.27.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.