Python sorting and searching algorithms
Project description
Python sorting/searching algorithms
The algorithms3x is a python package with 5 sorting/searching algorithms. The package would keep updating as python itself updates to higher versions.
It contains the following algorithms:
- Selection sort
- Bubble sort
- Linear search
- Binary search
- Merge sort
Installation
If not already install pip
Install the package with pip
or pip3
:
pip install python-algorithms-3x
Usage
Example:
from algorithms3x.search import linear_search
linear_search([1, 2, 3], 4)
Output:
False
from algorithms3x.sort import merge_sort
print(merge_sort([4, 1, 2, 3]))
Output:
[1, 2, 3, 4]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
superalgo-1.0.0.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for superalgo-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96eaece85793a9bab892f159274e425f7cad3662a5507b8cdfcd8d582c7dcc53 |
|
MD5 | c9ba9111a2602c1a59f3d22662ae5743 |
|
BLAKE2b-256 | 8bddde991935fae7fb127e76e76e5654d4f20b73e833948c932d1d64b631001b |