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.0.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.0.tar.gz.
File metadata
- Download URL: sorting_suite-1.0.0.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 |
22a352b904dc9890d5554984241c77be3b4774a44461b6019f106444d1437862
|
|
| MD5 |
6189f6888df4e08610dca6cf8c4752f7
|
|
| BLAKE2b-256 |
a3f02d0468565fd3f722dcaa5b03268519bfc86bbf3fcf29e72492bdbf454bc1
|
File details
Details for the file sorting_suite-1.0.0-py3-none-any.whl.
File metadata
- Download URL: sorting_suite-1.0.0-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 |
a13664ed4f18ecbf9a3f2ec30cdf3d241abee828e4cc81e94b30a4f8ef4c2e35
|
|
| MD5 |
6a5058839cce22295d1e8d8f2072ac76
|
|
| BLAKE2b-256 |
8b057d389d7f33e4ce7bac2ac12c0efdc267fcb6e961ce8925c21eefa69b3319
|