A large suite of numerical sorting algorithms in Python
Project description
sorting-suite is a simple Python library providing a comprehensive collection of numerical sorting algorithms, along with helpful utility functions.
Sorting Algorithms by Average Runtime
O(n + k)
- Bucket Sort
O(log^2 n)
- Bitonic Sort (can only be used on lists with size that is multiple of 2)
O(n log n)
- Heap Sort
- Merge Sort
- Quick Sort
- Shell Sort
O(n^2)
- Bubble Sort
- Comb Sort
- Insertion Sort
- Selection Sort
O(n!)
- Bogo Sort (please do not use this one)
Stable Sorts
- Bucket Sort
- Bubble Sort
- Insertion Sort
- Merge Sort
Utility Functions
swap(a, b)– Swap two elements.is_sorted(arr)– Check if an array is sorted.reverse(arr)– Reverse the elements of a list. Allows above sorting functions to sort in descending order, if desired.
Installation
pip install sorting-suite
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
sorting_suite-1.0.1.tar.gz
(4.7 kB
view details)
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 sorting_suite-1.0.1.tar.gz.
File metadata
- Download URL: sorting_suite-1.0.1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27919c9e8e7b9ba7af9b4813b49920be6e686109eb1817ef3ea2bbf4f8ee4546
|
|
| MD5 |
56aa5112b65b6f9bc82d11b294c2ae35
|
|
| BLAKE2b-256 |
666c367ae38dfff576f026aa1f488931a91af72cc49d1e9f126d518b83d87dd0
|
File details
Details for the file sorting_suite-1.0.1-py3-none-any.whl.
File metadata
- Download URL: sorting_suite-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82f53fd487f66a9b33f0c5387a0eda7e08b2c3e36adc2e89448b1aa746e469ae
|
|
| MD5 |
1999d78c3ebc32aa0477cffb77739b68
|
|
| BLAKE2b-256 |
acdad75975809a1cfb15d757949408f9ff6bee1731103d30a1d8e669365a8aa0
|