Skip to main content

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

  1. Bubble sort
  2. Selection sort
  3. Insertion sort
  4. Merge sort
  5. Quick sort
  6. Heap sort
  7. Counting sort
  8. Radix sort
  9. MSD (Most Significant Digit) Radix sort
  10. LSD (Least Significant Digit) Radix sort
  11. Bucket sort

Fun Sorting Algorithms

  1. Bogo sort
  2. Stalin sort
  3. Sleep sort
  4. Miracle sort
  5. Slow sort
  6. Shell sort
  7. 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

sorting_techniques-1.0.5.tar.gz (22.6 kB view details)

Uploaded Source

Built Distribution

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

sorting_techniques-1.0.5-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

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

Hashes for sorting_techniques-1.0.5.tar.gz
Algorithm Hash digest
SHA256 66567e81613437f303bcdf093b05534b925ab0650f2e9913fe48c4ea8fb4ad71
MD5 fd5b64d7aa56d788f866c6da93d515b3
BLAKE2b-256 84374ecdbae013cdaaf39c91777df0bfdd69a5733ce17c38b553a1bb50b4e04d

See more details on using hashes here.

File details

Details for the file sorting_techniques-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for sorting_techniques-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 bdd188d083b031e2f374ec4ecb7985447621463937bed16efcf44ea8dfc2cf25
MD5 44d2e250a082cf0dd5e8bb11f55ec803
BLAKE2b-256 41577251fd6a9e4dba4d3bf3d62ae7b8116f2eaa86712f8392d35ac23cf545c4

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