Stooge Sort

preview_player
Показать описание
Visualization and "audibilization" of the Stooge Sort algorithm.
Рекомендации по теме
Комментарии
Автор

Looks like the algorithm didn't really trust itself very much...

GLITCH_-.-
Автор

This is what bored programmers come up with to pass the time: Comedy in code form.

Roxor
Автор

Consider that it performs around 18, 000 comparisons after the array is already sorted.

livemorrow
Автор

why have free time when you can spend ten hours watching a computer sort data in a terribly inefficient way

txqea
Автор

"Hmmm I wonder if the data moved around while I wasn't looking... better go back and check!"

morgansaville
Автор

Step 1: look at a few integers
Step 2: look at them again just to check they haven't magically become something else.
Step 3: repeat step 1 & 2 a few times.
Step 4: sort them
Step 5: move on to a different set of integers

Or

Step 1: look at some values
Step 2: check they haven't changed
Step 3: ???
Step 4: profit

KingJellyfishII
Автор

Is this algorithm made to show how not to use recursion?

dorukayhanwastaken
Автор

It seems to tickle groups of integers a few times before deciding to move them.

Richardddoobies
Автор

This really gives you an appreciation of what O(n^2) really means; in terms of a problem that can be solved in linearithmic time it means fucking around being useless all day long.

Kabitu
Автор

"congratulations, you've successfully given a computer anxiety."

Exarian
Автор

this algorithm was actually created by the 3 stooges by accident

nuniezjorge
Автор

*is sorted for 20 seconds before it decides its actually sorted*

jacquelineamelie
Автор

If bubble sort is faster than you by a long shot, then something is horribly wrong.

epsilonthedragon
Автор

This is a _musical_ algorithm, useable for sorting purposes. Just needs some extra time before it stops. Reminds me of Beethoven's Schlussproblem...

michaelhubertz
Автор

Love the peculiar looping sound this overly-cautious algorithm produces

lpsp
Автор

2:30
What are you doing? It's already sorted!

SassInYourClass
Автор

It's safer to check several times

vitakyo
Автор

If Slow Sort is just a paranoid merge sort, then Stooge Sort is a paranoid bubble sort.

FabbrizioPlays
Автор

Somebody made this algorithm
Looked at how long it takes to sort this little array
*4 years, perfect*

radovanbabjak
Автор

The algorithm just decides to have a seizure for like the past half minute or so while the integers are already sorted.

Konym