Skip to main content

Collection of sorting algorithms in Python I did while I was bored

Project description

simuth

A simple Python package built while bored. Currently contains only basic sorts, will do more as I progress more :D


Installation

You can install from PyPI:

pip install simuth

Usage

After installing, import the Sorting class and call any method.

from simuth import Sorting

arr = [5, 3, 8, 4, 2]

print(Sorting.bubble_sort(arr))
print(Sorting.quick_sort_lomuto(arr))

# Special Dutch National Flag (only for 0s, 1s and 2s)
colors = [2, 0, 1, 2, 0, 0]
print(Sorting.dutch_national_flag(colors)) 

Currently available algorithms

  1. Bubble Sort
  2. Selection Sort
  3. Insertion Sort
  4. Merge Sort
  5. Quick Sort (Lomuto and Hoare)
  6. Dutch National Flag Algorithm
  7. An Easter Egg

License

This project is licensed under the MIT 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

simuth-0.1.0.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.

simuth-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file simuth-0.1.0.tar.gz.

File metadata

  • Download URL: simuth-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.10

File hashes

Hashes for simuth-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3061ec2c95b86932c3a6215f85a6175e9d4e3dfd34713c43bdbee46649938332
MD5 5d06bc4161a6b34732d330139f9af706
BLAKE2b-256 ce77afd11fa7deba1919d0f878db515a64d6e633a7091e25ec3804e652acba1f

See more details on using hashes here.

File details

Details for the file simuth-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: simuth-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.10

File hashes

Hashes for simuth-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 928b659e558802111b665382bd3cb67d4319485c1643b5a53e28406936bc04d4
MD5 9c052817cd1d1f216fd71a582b438ce7
BLAKE2b-256 24d8c15d0bc048d78bd3f599ed9312a62eb59c17f6852b6943ccd2270efd8bd2

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