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 superalgo.search import linear_search
linear_search([1, 2, 3], 4)
Output:
False
from superalgo.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.1.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for superalgo-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9eef9b55352836e8f5c086c373fb7a13e4a01b6cd0352d632512e7b88e471f0c |
|
MD5 | 3e087dfb319a15f20473b182ab639ef5 |
|
BLAKE2b-256 | 2512b9720713a553daedea0532a08c68055cbc91d90270630799d7611bbecbc1 |