Stalin Sort (Not Sorted in the way you expect it to be)

preview_player
Показать описание
Program is Gaming32's ArrayV
Рекомендации по теме
Комментарии
Автор

My favorite variation of Stalinsort is "The list is sorted. Any algorithms which disagree are flagged for reeducation"

omegahaxors-
Автор

the fact that it turned all red is a nice cherry on the top

themune
Автор

If every data is identical, then no more sorting is required. True efficiency.

garlicohen
Автор

Was fully expecting it to just delete half of the numbers, but this is definitely just as funny.

ZmanVlog
Автор

For element n:
if n+1 = n, keep
if n+1 ≠ n, send n+1 -> gulag

Balsiefen
Автор

technically stalin sort is just a filtering algorithm, but at the end the output is sorted, so it's not wrong to say that it's a O(n) sorting algorithm 😂

SpeckyYT
Автор

You will find the rest of the data in the gulag

mdhasiburrahman
Автор

This video even has the "scream" of people being eliminated by the algorithm

abdillahahmad
Автор

For element n:
if n+1 < n, send n -> gulag
if n+1 = n, keep
if n+1 > n, send n+1 -> gulag
When count(gulag) > 20% count(population), exit loop; delete developer.

gengis
Автор

Removing every element that was not already in the desired order. I had to search the internet to get that description. This video would benefit from having that in the description.

RC-
Автор

I like how it just eliminates all the elements not fitting. The name is justified

MinorLife
Автор

Was expecting the USSR Anthem to play when everything turned red

noobnesz
Автор

He was right, I truly did not expect this.

DarkManifesto
Автор

You can recursively stalinsort, then merge))

Infe
Автор

"fear is the foundation of any order"
- joseph stalin

akashgeorge
Автор

Ah, so this is how Stalin sorted his lists

bouncycow
Автор

The rule of the game is we all are the same and our lines will form unbroken rows

MizoxNG
Автор

funfact it works by removing any sort that is not the same as the rest (similar to how stalin did it. hence stalin sort)
edit: why tf does this almost have 150 likes

Chicken-butw
Автор

yep, that works, and was not expected. other sorting algorithms really need to take notes

Name_Pendingg
Автор

the data points even sounded like they are screaming at the end...

ManiakPL