Skip to content

etinaude/python-sorting-algorithms

Repository files navigation

python-sorting-algorithms

a series of algorithms in python please feel free to add and edit

These have been added:

  • Bubble sort
  • Counting sort
  • Quick sort
  • Radix sort
  • Insertion sort
  • Selection sort
  • Bogo sort

These will be added:

  • Pancake sort
  • merge sort
  • Pigeonhole sort
  • Tim sort
  • Heap sort
  • Sudo bogo sort

notes

Each algorithm is in a function which takes only an unsorted array as a parameter returns the sorted array
There are notes before each algorithm explaining it.

  • n = number of elements to sort
  • d = number of digits in the largest element
  • r = range of elements (largest - smallest)
  • k = size of key

the best, average and worst shows the trend of how each algorith will perform when increasing these values.
I will continue improving this and adding new algorithms

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy