bst-0.5.0
توضیحات
A binary search tree implemented for learning purposes.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | bst-0.5.0 |
| نام | bst |
| نسخه کتابخانه | 0.5.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ryan Gilbert |
| ایمیل نویسنده | ryangilbert7926@gmail.com |
| آدرس صفحه اصلی | https://github.com/rgilbert1/bst |
| آدرس اینترنتی | https://pypi.org/project/bst/ |
| مجوز | MIT |
# bst
[](https://travis-ci.org/rgilbert1/bst)
In school, I struggled with how binary search trees (and related data structures & algorithms) work, but now with a little more programming experience under my belt I decided to work through implementing one. It currently has insert, search, and traversal functionality.
## Install
```
pip install bst
```
## Usage
```python
from bst import BST
bst = BST()
bst.insert(5)
node = bst.search(5) # <bst.Node object at 0x1060964e0>
node.value # 5
```
## Development
The only dependency is `nose`, it's used to automatically run all of the unit tests in `tests/`. Install dependencies with `pip install -r requirements.txt`, and run the tests with `nosetests -v`.
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl bst-0.5.0:
pip install bst-0.5.0.whl
نصب پکیج tar.gz bst-0.5.0:
pip install bst-0.5.0.tar.gz