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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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