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.4.tar.gz (18.1 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.4-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

Details for the file sorting_techniques-1.0.4.tar.gz.

File metadata

  • Download URL: sorting_techniques-1.0.4.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for sorting_techniques-1.0.4.tar.gz
Algorithm Hash digest
SHA256 eeafc7accbefc111b6d021a813b7e92fe7bedf79ccec3f7e1805cd18ffaa39a2
MD5 1381d488f8f3ef208b20bd7363c18898
BLAKE2b-256 aec5f1680cdd4e084066ab9768d7d2beeadd0b099d56569131f75c6e13ed0a1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sorting_techniques-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 aeafbff6c94042714e474262b9cef15035236a18bec3c7f501fa5af89fac182d
MD5 daca3efbb3d5e8ce960d9f849fd72a86
BLAKE2b-256 ccc80561a5eaa223de565afcb3d936e8c8d2d6234f4ce81828a93e02d593b7e2

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