Skip to main content

A Python library that provides various sorting algorithms including Bubble Sort, Quick Sort, Merge Sort, Insertion Sort, Selection Sort,Tim 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, Tim 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.
Tim Sort: Python's default sort uses Tim Sort, which is a combination of both merge sort and insertion sort.

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.5.tar.gz (4.0 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.5-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: MoSort-0.1.5.tar.gz
  • Upload date:
  • Size: 4.0 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.5.tar.gz
Algorithm Hash digest
SHA256 e8cbd2d012e03f80a890c6abad60a5ed5b2842a06953bb66de9ad3059ef729fd
MD5 86db134ee0afaaa67e6eae3a5e9af87d
BLAKE2b-256 7f0333d756927e05dfeb956cfeedd6e8e3a6a37322e4163781b61d53078713af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: MoSort-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 5.6 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 797d739ba92b3ce32987d53d7f8684d603689a77ed220c15d5c7ff4bdc0e3a8d
MD5 67d69984de1b59065259187a3e48f98c
BLAKE2b-256 de473656bdec17f4d750b7a56d84c98ace6f543c78892463c3cd23df1caee290

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