A Python package with modular sorting algorithm implementations.
Project description
Sorting Algorithms Library
A Python package that provides a collection of well-known and fun sorting algorithms for use in various applications. The package offers an easy-to-use interface for importing and utilizing these algorithms in your Python projects.
Installation
You can install the package via pip:
pip install sorting-techniques
Sorting Algorithms
This library includes the following sorting techniques:
Standard Sorting Algorithms
- Bubble sort
- Selection sort
- Insertion sort
- Merge sort
- Quick sort
- Heap sort
- Counting sort
- Radix sort
- MSD (Most Significant Digit) Radix sort
- LSD (Least Significant Digit) Radix sort
- Bucket sort
Fun Sorting Algorithms
- Bogo sort
- Stalin sort
- Sleep sort
- Miracle sort
- Slow sort
- Shell sort
- Cocktail Shaker sort
Usage
You can use any of these sorting algorithms by importing them from the package. For example:
from sorting_techniques import bubble_sort
data = [5, 3, 8, 6, 2]
sorted_data = bubble_sort(data)
print(sorted_data)
Contributing
Contributions to the library are welcome! Feel free to fork the repository and submit pull requests. We encourage adding new sorting algorithms or improving the performance of existing ones.
License
This project is licensed under the GPL-3.0 License.
Project details
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 sorting_techniques-1.0.5.tar.gz.
File metadata
- Download URL: sorting_techniques-1.0.5.tar.gz
- Upload date:
- Size: 22.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66567e81613437f303bcdf093b05534b925ab0650f2e9913fe48c4ea8fb4ad71
|
|
| MD5 |
fd5b64d7aa56d788f866c6da93d515b3
|
|
| BLAKE2b-256 |
84374ecdbae013cdaaf39c91777df0bfdd69a5733ce17c38b553a1bb50b4e04d
|
File details
Details for the file sorting_techniques-1.0.5-py3-none-any.whl.
File metadata
- Download URL: sorting_techniques-1.0.5-py3-none-any.whl
- Upload date:
- Size: 26.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bdd188d083b031e2f374ec4ecb7985447621463937bed16efcf44ea8dfc2cf25
|
|
| MD5 |
44d2e250a082cf0dd5e8bb11f55ec803
|
|
| BLAKE2b-256 |
41577251fd6a9e4dba4d3bf3d62ae7b8116f2eaa86712f8392d35ac23cf545c4
|