Skip to main content

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

shansort-0.1.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shansort-0.1.1-cp311-cp311-win_amd64.whl (8.3 kB view details)

Uploaded CPython 3.11Windows x86-64

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

Hashes for shansort-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7ae80dddc967ef93e4fa7f097f7497c7ac5b2f1852ed83bde4ad90e6e03718a8
MD5 842dfb044deabd630d2e578b337d4065
BLAKE2b-256 77b7b0ee2d68b0ebf457a836904045caeedb22669e2bacdc907199587a699301

See more details on using hashes here.

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

Hashes for shansort-0.1.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6b32cfe9f2377959eadd7863e384ad2162f7926b5cf5a66c16345cee50fd9073
MD5 4d653f15b76156da5dcc92b293012423
BLAKE2b-256 9066c1dd0acd0abe7f4bf632bf6166ec7db9d9b753a9cbc9670045d8dbcd9da7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page