An efficient implementation of Algorithm X
Project description
Algorithm X
An efficient Python implementation of Algorithm X, which finds solutions to instances of the Exact Cover problem.
Installation
$ pip install algorithm-x
Usage
from algorithm_x import AlgorithmX
solver = AlgorithmX(7)
solver.appendRow([2, 4, 5], 'row 1')
solver.appendRow([0, 3, 6], 'row 2')
solver.appendRow([1, 2, 5], 'row 3')
solver.appendRow([0, 3], 'row 4')
solver.appendRow([1, 6], 'row 5')
solver.appendRow([3, 4, 6], 'row 6')
for solution in solver.solve():
print(solution)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
algorithm_x-0.0.3.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for algorithm_x-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f3a33675a5b87e8be7e2e672d68b4e22f3a08ef9426b0c8686f170f9fac93de |
|
MD5 | 5e6b3a1b7b12553eb1ed5579d8b0bcac |
|
BLAKE2b-256 | 450fae7537faa1bbd2886b1b9da0d6be7d4339fc20a39ee4849fa3c79d4caad0 |