A sorting package
Project description
sorting_asmaa is a Python package that gives the user options to sort different types of inputs. The package includes quick sort, K-way merge sort, introsort,Bucket sort,shell sort, and Radix sort. ## Getting Started ### Prerequisites
Before proceeding with the package installation, the following packages are needed: Math and timeit ### Installing
On command prompt
$ pip install sorting_asmaa
Usage
To use quicksort,
import sorting_asmaa slist=[1,3,4,5] #add your list sorting_asmaa.quicksort_asmaa(slist)
To use shell sort,
slist=[1,3,4,5] #add your list print(sorting_asmaa.shellsort_asmaa(slist))
To use k-way merge sort
k=2 #add the value of k slist=[1,3,4,5] #add your list sorting_asmaa.kmerge_asmaa(slist)
To use bucket sort
slist=[1,3,4,5] #add your list sorting_asmaa.bucketsort_asmaa(slist)
To use radix sort
slist=[1,3,4,5] #add your non-negative input sorting_asmaa.radixsort_asmaa(slist)
To use intro sort
slist=[1,3,4,5] #add your input sorting_asmaa.introsort_asmaa(slist)
Built With
Dillinger - Readme framework used
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sorting_asmaa-0.4.3.tar.gz
(6.1 kB
view hashes)
Built Distribution
Close
Hashes for sorting_asmaa-0.4.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60b39de03fb699671eb331063ee74fa793ab87118c80aabb23347e74df94f8e0 |
|
MD5 | ebf16ae28423b3e6b7f1833701dea6e4 |
|
BLAKE2b-256 | 89f68d1bab3fb6ceea6acdc470def2a1c7efd8ce1f8d9091cbf2e3fcbb7b3435 |