Shan Sort Algo
Project description
shansort
What is Shan Sort?
Shan Sort is a stable and efficient radix sorting algorithm implemented in C. It sorts 64-bit integers by processing their binary digits (bits) in passes, making it faster than traditional comparison-based sorts for large datasets. It also handles negative numbers by offsetting them during sorting.
How to Use
After installing the package, you can import and use the sorting function like this:
from shansort import shan_sort
data = [10, -5, 3, 0, -2]
sorted_data = shan_sort(data)
print(sorted_data) # Output: [-5, -2, 0, 3, 10]
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 shansort-0.1.1.tar.gz.
File metadata
- Download URL: shansort-0.1.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ae80dddc967ef93e4fa7f097f7497c7ac5b2f1852ed83bde4ad90e6e03718a8
|
|
| MD5 |
842dfb044deabd630d2e578b337d4065
|
|
| BLAKE2b-256 |
77b7b0ee2d68b0ebf457a836904045caeedb22669e2bacdc907199587a699301
|
File details
Details for the file shansort-0.1.1-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: shansort-0.1.1-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 8.3 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b32cfe9f2377959eadd7863e384ad2162f7926b5cf5a66c16345cee50fd9073
|
|
| MD5 |
4d653f15b76156da5dcc92b293012423
|
|
| BLAKE2b-256 |
9066c1dd0acd0abe7f4bf632bf6166ec7db9d9b753a9cbc9670045d8dbcd9da7
|