BinaryTreeSearcher-1.0.5
توضیحات
A simple binary tree search library
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | BinaryTreeSearcher-1.0.5 |
| نام | BinaryTreeSearcher |
| نسخه کتابخانه | 1.0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Solomon Ndifereke Aniefiok |
| ایمیل نویسنده | solomonndi96@gmail.com |
| آدرس صفحه اصلی | https://github.com/DR-FREKE/BinaryTreeSearch |
| آدرس اینترنتی | https://pypi.org/project/BinaryTreeSearcher/ |
| مجوز | - |
this is a trial library for python
**\*\*** HOW TO USE **\*\***
install the package by running
pip install BinaryTreeSearch
then import the package as
from BinaryTreeSearch.BinaryTreeClass import BinaryTreeSearch
create an instance of the class as
tree = BinaryTreeSearch();
then call the binarySearch method on the instance
the method takes in two arguement
-->> the tree you want to search through
-->> the item or number you are searching for
example
from BinaryTreeSearch.BinaryTreeClass import BinaryTreeSearch
tree = BinaryTreeSearch();
tree_list = [3, [8, [5, None, 11], 94], [7, 15, 29]]
isNumber = tree.binarySearch(tree_list, 11)
print(isNumber)
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl BinaryTreeSearcher-1.0.5:
pip install BinaryTreeSearcher-1.0.5.whl
نصب پکیج tar.gz BinaryTreeSearcher-1.0.5:
pip install BinaryTreeSearcher-1.0.5.tar.gz