algorithm-x-0.1.0
توضیحات
An efficient implementation of Algorithm X
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | algorithm-x-0.1.0 |
| نام | algorithm-x |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Bjarki Ágúst Guðmundsson |
| ایمیل نویسنده | suprdewd@gmail.com |
| آدرس صفحه اصلی | https://github.com/SuprDewd/algorithm_x_python |
| آدرس اینترنتی | https://pypi.org/project/algorithm-x/ |
| مجوز | - |
# Algorithm X
An efficient Python implementation of [Algorithm
X](https://arxiv.org/abs/cs/0011047), which finds solutions to instances of the
[Exact Cover problem](https://en.wikipedia.org/wiki/Exact_cover).
## Installation
```bash
$ pip install algorithm-x
```
## Usage
```python
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)
```
نحوه نصب
نصب پکیج whl algorithm-x-0.1.0:
pip install algorithm-x-0.1.0.whl
نصب پکیج tar.gz algorithm-x-0.1.0:
pip install algorithm-x-0.1.0.tar.gz