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.
You can install the package via pip:
pip install sorting-techniques
This library includes the following sorting techniques:
- 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
- Bogo sort
- Stalin sort
- Sleep sort
- Miracle sort
- Slow sort
- Shell sort
- Cocktail Shaker sort
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)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.
This project is licensed under the GPL-3.0 License.