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.4.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.4-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: MoSort-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 00f450d60733b4c06b6e9b68dfd2e503f69ad58068bf742bb081225bc619b38a
MD5 240b3ff851f9b953b003e1d1381ce171
BLAKE2b-256 243ed6e663111a0fabe03dd4793dad9e461518549126a42b0146c833ddd56f4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: MoSort-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7ec16d2fd0d14ba04d2b2f5648152f7039a2ddd40b13d8e67193feb2cae44f9e
MD5 83a77986f583f70fb5545066b615ba96
BLAKE2b-256 7c2c5726270ebd0544d87f86dafd49a836141269a3381db0a1a07a4070c6aad3

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