Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abranhe/allalgorithms-python
The All ▲lgorithms Python Library.
https://github.com/abranhe/allalgorithms-python
algorithms allalgorithms pip pypi python python-library
Last synced: 9 days ago
JSON representation
The All ▲lgorithms Python Library.
- Host: GitHub
- URL: https://github.com/abranhe/allalgorithms-python
- Owner: abranhe
- License: mit
- Created: 2018-10-09T05:42:09.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-04T16:55:09.000Z (about 5 years ago)
- Last Synced: 2024-10-12T12:15:02.831Z (25 days ago)
- Topics: algorithms, allalgorithms, pip, pypi, python, python-library
- Language: Python
- Homepage: https://python.allalgorithms.com/
- Size: 79.1 KB
- Stars: 33
- Watchers: 2
- Forks: 25
- Open Issues: 28
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- Contributing: .github/contributing.md
- License: license
- Code of conduct: .github/code-of-conduct.md
Awesome Lists containing this project
README
# Why?
- Why not 😂
- Clean and focused
- Actively maintained
- Because All Algorithms should be easy to use in PythonRead the detailed documentation at [python.allalgorithms.com](https://python.allalgorithms.com) or see the [`docs`](https://github.com/abranhe/allalgorithms-python/blob/master/docs) directory on Github. See [Tree](#tree).
**Want to contribute?** [GET STARTED HERE](https://github.com/abranhe/allalgorithms-python/tree/master/.github/contributing.md)
## Install
```
pip install allalgorithms
```## Usage Example
```py
from allalgorithms.searches import binary_searcharr = [-2, 1, 2, 7, 10, 77]
print(binary_search(arr, 7))
# -> 3print(binary_search(arr, 3))
# -> None
```# Tree
- ### Searches
- [Binary Search](https://python.allalgorithms.com/searches/binary-search)
- [Fibonacci Search](https://python.allalgorithms.com/searches/fibonacci-search)
- [Jump Search](https://python.allalgorithms.com/searches/jump-search)- ### Sorting
- [Bubble Sort](https://python.allalgorithms.com/sorting/bubble-sort)
- [Cocktail Shaker Sort](https://python.allalgorithms.com/sorting/cocktail-shaker-sort)
- [Insertion Sort](https://python.allalgorithms.com/sorting/insertion-sort)
- [Merge Sort](https://python.allalgorithms.com/sorting/merge-sort)
- [Pigeonhole Sort](https://python.allalgorithms.com/sorting/pigeonhole-sort)
- [Selection Sort](https://python.allalgorithms.com/sorting/selection-sort)
- [Stooge Sort](https://python.allalgorithms.com/sorting/stooge-sort)
- ### String
- [Palindrome Check](https://python.allalgorithms.com/string/palindrom-check)# Related
- [allalgorithms-js](https://github.com/abranhe/allalgorithms-js): All ▲lgorithms Javascript library
# Maintainers
|[![Carlos Abraham Logo][3]][4]|
| :--------------------------: |
| [Carlos Abraham][4] |# License
[MIT][5] License © [Carlos Abraham][4]
[1]: https://cdn.abranhe.com/projects/algorithms/badge.svg
[2]: https://github.com/abranhe/allalgorithms-python
[3]: https://avatars3.githubusercontent.com/u/21347264?s=50
[4]: https://github.com/abranhe
[5]: https://github.com/abranhe/allalgorithms-python/blob/master/license