Skip to main content

A Python library that provides various sorting algorithms including Bubble Sort, Quick Sort, Merge Sort, Insertion Sort, Selection Sort, and Heap Sort. Written by Mohammad E. Eslami.

Project description

MoSort

MoSort is a Python library that provides implementations of several different sorting algorithms: Bubble Sort, Quick Sort, Merge Sort, Insertion Sort, Selection Sort, and Heap Sort.

What is it?

MoSort is a Python package that provides fast, flexible, and efficient implementations of various sorting algorithms. It aims to be a comprehensive tool for sorting arrays in different ways, making it easy to use and integrate into your projects.

Main Features

Here are all the sorting algorithms that MoSort provides:

Bubble Sort: A simple comparison-based sorting algorithm.
Quick Sort: An efficient, comparison-based, divide-and-conquer sorting algorithm.
Merge Sort: A stable, comparison-based, divide-and-conquer sorting algorithm.
Insertion Sort: A simple, comparison-based, stable sorting algorithm.
Selection Sort: A simple, in-place comparison-based sorting algorithm.
Heap Sort: A comparison-based sorting algorithm based on binary heap data structure.

Installation

You can install MoSort using pip:

pip install MoSort

Usage

Once installed, you can import and use each sorting algorithm provided by MoSort. Here's an example of how to use Quick Sort:

from MoSort import ms

array = [64, 25, 12, 22, 11]
sorted_array = ms.quick_sort(array)    #Replace quick_sort with any other sorting algorithm from MoSort library to use it accordingly.
print("Sorted array using Quick Sort:", sorted_array)

Contributing

Contributions, bug reports, and feature requests are welcome!

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

MoSort-0.1.3.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

MoSort-0.1.3-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file MoSort-0.1.3.tar.gz.

File metadata

  • Download URL: MoSort-0.1.3.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.18

File hashes

Hashes for MoSort-0.1.3.tar.gz
Algorithm Hash digest
SHA256 5609ee7fea22cbcb684850a6d61090bc100cd332725f0f178a5a0a4abd2f3d40
MD5 708cafdb293b42b0d02f8478207367f7
BLAKE2b-256 b1b1219d6704158be9b6a5249a0414dd93bd75a9b6f77fb243c7a77b803c4496

See more details on using hashes here.

File details

Details for the file MoSort-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: MoSort-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.18

File hashes

Hashes for MoSort-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ad8e145da981e9bf7cc17b3cd80f7522882a265bf6e6b2cab477f0bfd84958ea
MD5 8db31b48f646f590ccb9f7da640bdba1
BLAKE2b-256 0e027df63a614a6de4577526ffac7812a8b24fc6547bccfb288a456f98ff1d63

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