Content-Length: 301144 | pFad | http://github.com/etinaude/python-sorting-algorithms/tree/b4ff50045eedd4600b9d7fe8ad2aa8ebde991de1

67 GitHub - etinaude/python-sorting-algorithms at b4ff50045eedd4600b9d7fe8ad2aa8ebde991de1
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
  • merge sort
  • Heap sort
  • Pancake sort
  • Pigeonhole sort
  • Bucket sort

esoteric sorts:

  • Bogo sort
  • Intelligent design sort
  • Miracle sort/solarbit flip sort
  • Stalin sort
  • Threatening Sort DO NOT EVEN THINK ABOUT USING THIS
  • Sleep sort

my own algorithms:

  • Sassy sort (tells you to sort it your own damn self)
  • Meme sort (sort based on proximity to the numbers 69 and 420)

These will be added:

  • Tim sort
  • LSD radix
  • No extra space radix
  • Cocktail sort
  • Sorting network

esoteric sorts:

  • Sudo bogo sort
  • Bozo sort
  • Jingle sort
  • Bogobogo sort
  • Spaghetti sort
  • Stooge
  • Rolling stone sort(physics engine required)
  • Slow sort
  • Worst sort
  • Linus sort

my own algorithms:

  • lls{low level sort} sorts based on -1 to each value and ordering base on which reaches 0 first (only positive ints)
  • Reddit sort (post it on Reddit and take the top reply as fact)
  • combo sort (sorts with 5 algorithms to make sure its correct)
  • 5 stages of grief 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 algorithm will perform when increasing these values.
I will continue improving this and adding new algorithms









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/etinaude/python-sorting-algorithms/tree/b4ff50045eedd4600b9d7fe8ad2aa8ebde991de1

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy