Skip to content

Instantly share code, notes, and snippets.

@sysr-q
Created April 27, 2014 06:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sysr-q/11339024 to your computer and use it in GitHub Desktop.
Save sysr-q/11339024 to your computer and use it in GitHub Desktop.
+plausi | I've patented a special sorting algorithm I like to call "dicksort".
+plausi | It's like quicksort, but I use it to rank men by their penis size.
+gnustomp | I've patented a special sorting algorithm I like to call "nosort".
+gnustomp | It's like other sorting algorithms, but it doesn't actually sort anything.
+plausi | I've patented a special sorting algorithm I like to call "stackoversort"
+plausi | It just downloads and runs code from stack overflow until the array is
| sorted.
+gnustomp | I've patented a special sorting algorithm I like to call "sorted".
+gnustomp | Your array is already sorted, but you don't believe it.
+loadedice | I've stolen this sorting algorithm called bogo sort, it just shuffles
| things in random order and then checks if its sorted. It's the fastest and
| slowest algorithm.
+plausi | I've patented this special sorting algorithm called bogobogosort, it just
| shuffles things in random order, checks if they're sorted, and then
| shuffles smaller and smaller portions of the array. If one of the portions
| is unsorted, it reshuffles the entire array.
+loadedice | Thats clever.
+gnustomp | I've patented this special sorting algorithm called nullsort, it empties
| the array, so that the array becomes sorted because it contains nothing.
+plausi | I've patented this special sorting algorithm called onesort, it empties
| the array, except for the first element, so that the array is sorted due
| to containing only one thing.
+loadedice | Has someone patented an algorithm that sorts an array by defining the
| sorted state to the array and then tries to sort all the other arrays
| according to the first array that is "correctly sorted"?
+plausi | I've patented an algorithm called ##hypnotoadsort, that posts the array
| into IRC and assumes the first response from auscompgeek will be the
| array, but sorted.
+plausi | It's O(n log n) time.
+gnustomp | I've patented an algorithm named PaperSort, that checks if PaperBag's
| database for a factoid of the array, otherwise it makes the array a sorted
| collection of good band names.
+plausi | I've patented an algorithm called stdlibsort, it checks the stdlib of
| every language you have installed for an Array.sort() (+ casing variants),
| and runs those until the array is sorted.
@auscompgeek
Copy link

Too bad I can't patent deletion sort. 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment