Tree Search Solver (Python)
A solver based on heuristic tree search.
This is the Python3 version of the C++ package fontanf/treesearchsolver.
Description
The goal of this repository is to provide a simple framework to quickly implement algorithms based on heuristic tree search.
Solving a problem only requires a couple hundred lines of code (see examples).
Algorithms:
- Greedy
greedy - Best First Search
best_first_search - Iterative Beam Search
iterative_beam_search
Examples
Usage, running examples from command line
Install
pip3 install treesearchsolverpy
Running an example:
mkdir -p data/travellingsalesman/instance
python3 -m examples.travellingsalesman -a generator -i data/travellingsalesman/instance
python3 -m examples.travellingsalesman -a iterative_beam_search -i data/travellingsalesman/instance_50.json
Update:
pip3 install --upgrade treesearchsolverpy
Usage, Python library
See examples.
Metadata
Release files for treesearchsolverpy 0.0.5
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 |
|---|---|---|---|---|
| treesearchsolverpy-0.0.5.tar.gz | 6.6 kB | Without provenance | Details for treesearchsolverpy-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| treesearchsolverpy-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for treesearchsolverpy-0.0.5-py3-none-any.whl |
Total release size: 14.9 kB
Release files / treesearchsolverpy-0.0.5.tar.gz
| Download URL | treesearchsolverpy-0.0.5.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb34a2ff7e34c5614fb7fcc8b3ba0f9a5df66e8c430493f55e6434af8844c399
|
|
BLAKE2b-256 checksum How to use checksums |
6a885a80d455236a751d4d40f86d6f9aa24d12d6c6bec6890782a0db6f688f97
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
|
Release files / treesearchsolverpy-0.0.5-py3-none-any.whl
| Download URL | treesearchsolverpy-0.0.5-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cf4013cf13caed75be34c9a8f2eaddf0d51956018df9dc0da962abba7457181b
|
|
BLAKE2b-256 checksum How to use checksums |
8277eca774fd7e9426ffe8e3e7bd2623c76544dbf09b4902b08f662ccef0f527
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
|
Security for treesearchsolverpy 0.0.5
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.