Skip to main content

A Powerful package to perform different types of stable and unstable Sorting techniques on the list Data Structure.

Project description

PySort

A Powerful Python package that performs 15 different types of stable and unstable Sorting algorithms on List Data Structure. This package will be more beneficial for competitive programmers and developers. Based on your requirement choose your sort algorithm.

USAGE

# importing Library

from sorting_techniques import pysort

# Creating the Sort Object
sortObj = pysort.Sorting()

BUBBLE SORT

myList = [1,3,2,7,4,89,56,99,111,23,6445,566]

# Genearting the Sort Result 
sortResult = sortObj.bubbleSort(myList)

# The SortResult contains the Sorted List

print(sortResult)

Insertion Sort

# Performing Insertion Sort
sortResult = sortObj.insertionSort(myList)

# The SortResult contains the Sorted List

print(sortResult)

Selection Sort

# Performing Insertion Sort
sortResult = sortObj.selectionSort(myList)

# The SortResult contains the Sorted List

print(sortResult)

Shell Sort

# Performing Insertion Sort
sortResult = sortObj.shellSort(myList)

# The SortResult contains the Sorted List

print(sortResult)

Pigeon Hole Sort

# Performing Insertion Sort
sortResult = sortObj.pigeonHoleSort(myList)

# The SortResult contains the Sorted List

print(sortResult)

Heap Sort

# Performing Insertion Sort
sortResult = sortObj.heapSort(myList)

# The SortResult contains the Sorted List

print(sortResult)

Gnome Sort

# Performing Insertion Sort
sortResult = sortObj.heapSort(myList)

# The SortResult contains the Sorted List

print(sortResult)

Heap Sort

# Performing Insertion Sort
sortResult = sortObj.heapSort(myList)

# The SortResult contains the Sorted List

print(sortResult)

Pancake Sort

# Performing Insertion Sort
sortResult = sortObj.pancakeSort(myList)

# The SortResult contains the Sorted List

print(sortResult)

Bogo Sort

# Performing Insertion Sort
sortResult = sortObj.bogoSort(myList)

# The SortResult contains the Sorted List

print(sortResult)

Merge Sort

# Performing Insertion Sort
sortResult = sortObj.mergeSort(myList)

# The SortResult contains the Sorted List

print(sortResult)

Quick Sort

# Performing Insertion Sort
sortResult = sortObj.heapSort(myList)

# The SortResult contains the Sorted List

print(sortResult)

Brick Sort

# Performing Insertion Sort
sortResult = sortObj.brickSort(myList)

# The SortResult contains the Sorted List

print(sortResult)

Radix Sort

# Performing Insertion Sort
sortResult = sortObj.radixSort(myList)

# The SortResult contains the Sorted List

print(sortResult)

Stooage Sort

# Performing Insertion Sort
sortResult = sortObj.heapSort(myList,initialIndexValue, lengthOfList-1)

# The SortResult contains the Sorted List

print(sortResult)

Dependencies

  1. Python v3.x is Required.

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

pysort-1.0.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

pysort-1.0.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file pysort-1.0.0.tar.gz.

File metadata

  • Download URL: pysort-1.0.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2

File hashes

Hashes for pysort-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f36651490e544e689b4f51185b6abd48444556a75c2a307c1b32a1750496aea7
MD5 9a3c97342c84303c5c505298b76acb23
BLAKE2b-256 251b18c86981a76bbec7f80b5a2716ee6492b0f6ddccf08729617e5f400259fd

See more details on using hashes here.

File details

Details for the file pysort-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pysort-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2

File hashes

Hashes for pysort-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 80878810a5553476cc09f651fc9336fa906328894eee679c8f62804a12e8d1e8
MD5 70214634b3532d71ecfd5df148c679f8
BLAKE2b-256 fbc33c2f7e195e165138eb871ffe2d89b255f92660171c3c52860f8a093cd621

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page