Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        












The All ▲lgorithms Python library









Coverage Status






python.allalgorithms.com

# Why?

- Why not 😂
- Clean and focused
- Actively maintained
- Because All Algorithms should be easy to use in Python

Read 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_search

arr = [-2, 1, 2, 7, 10, 77]

print(binary_search(arr, 7))
# -> 3

print(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