Sort implementation in Python
Project description
Sorting
Sort implementation in Python
Demo
Demo on Repl.it
Install
$ pip install sorting
Usage
import sorting
data = [1, 8, 3, 5, 6, 9, 2, 4]
res = sorting.bubble(data)
print('Bubble Sort : ', res)
res = sorting.bucket(data)
print('Bucket Sort : ', res)
res = sorting.comb(data)
print('Comb Sort : ', res)
res = sorting.counting(data)
print('Counting Sort : ', res)
res = sorting.maxheap(data)
print('Max Heap Sort : ', res)
res = sorting.minheap(data)
print('Min Heap Sort : ', res)
res = sorting.merge(data)
print('Merge Sort : ', res)
res = sorting.quick(data)
print('Quick Sort : ', res)
res = sorting.radix(data)
print('Radix Sort : ', res)
res = sorting.selection(data)
print('Selection Sort : ', res)
res = sorting.cycle(data)
print('Cycle Sort : ', res)
"""
Output:
Bubble Sort : [1, 2, 3, 4, 5, 6, 8, 9]
Bucket Sort : [1, 2, 3, 4, 5, 6, 8, 9]
Comb Sort : [1, 2, 3, 4, 5, 6, 8, 9]
Counting Sort : [1, 2, 3, 4, 5, 6, 8, 9]
Max Heap Sort : [1, 2, 3, 4, 5, 6, 8, 9]
Min Heap Sort : [1, 2, 3, 4, 5, 6, 8, 9]
Merge Sort : [1, 2, 3, 4, 5, 6, 8, 9]
Quick Sort : [1, 2, 3, 4, 5, 6, 8, 9]
Radix Sort : [1, 2, 3, 4, 5, 6, 8, 9]
Selection Sort : [1, 2, 3, 4, 5, 6, 8, 9]
Cycle Sort : [1, 2, 3, 4, 5, 6, 8, 9]
"""
Get Help
There are few ways to get help:
-
Please post questions on Stack Overflow. You can open issues with questions, as long you add a link to your Stack Overflow question.
-
For bug reports and feature requests, open issues.
-
For direct and quick help, you can email me.
How to contribute
Have an idea? Found a bug? See how to contribute.
Thanks!
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
sorting-1.0.2.tar.gz
(4.0 kB
view details)
File details
Details for the file sorting-1.0.2.tar.gz
.
File metadata
- Download URL: sorting-1.0.2.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cdef492c66ffd958eeb4f09a435e3140740cf85b0d55974bbbb6813958be7b2 |
|
MD5 | a16f9f2f680738ef5b099eef7e0f232c |
|
BLAKE2b-256 | 5fc82d2318aa6697f8771371bdfb27c12bff5437f5b2f323a11563f2a8bf4fdf |