Collection of sorting algorithms in Python I did while I was bored
Project description
simuth
A simple Python package built while bored. Currently contains only basic sorts, will do more as I progress more :D
Installation
You can install from PyPI:
pip install simuth
Usage
After installing, import the Sorting class and call any method.
from simuth import Sorting
arr = [5, 3, 8, 4, 2]
print(Sorting.bubble_sort(arr))
print(Sorting.quick_sort_lomuto(arr))
# Special Dutch National Flag (only for 0s, 1s and 2s)
colors = [2, 0, 1, 2, 0, 0]
print(Sorting.dutch_national_flag(colors))
Currently available algorithms
- Bubble Sort
- Selection Sort
- Insertion Sort
- Merge Sort
- Quick Sort (Lomuto and Hoare)
- Dutch National Flag Algorithm
- An Easter Egg
License
This project is licensed under the MIT License
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simuth-0.1.0.tar.gz.
File metadata
- Download URL: simuth-0.1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3061ec2c95b86932c3a6215f85a6175e9d4e3dfd34713c43bdbee46649938332
|
|
| MD5 |
5d06bc4161a6b34732d330139f9af706
|
|
| BLAKE2b-256 |
ce77afd11fa7deba1919d0f878db515a64d6e633a7091e25ec3804e652acba1f
|
File details
Details for the file simuth-0.1.0-py3-none-any.whl.
File metadata
- Download URL: simuth-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
928b659e558802111b665382bd3cb67d4319485c1643b5a53e28406936bc04d4
|
|
| MD5 |
9c052817cd1d1f216fd71a582b438ce7
|
|
| BLAKE2b-256 |
24d8c15d0bc048d78bd3f599ed9312a62eb59c17f6852b6943ccd2270efd8bd2
|