*SEIZURE WARNING* Exchange Bogosort

preview_player
Показать описание

Thank you to Kalmar Republic and Segaking584 for supporting my videos!
Join this channel to get access to perks:
Рекомендации по теме
Комментарии
Автор

So we're doing everything we can to make Bogosort less of a Bogosort?

I'm ok with this future

iridium
Автор

I like how the comparisons speed up as more and more misses occur

Gamingi
Автор

This is very similar, if not identical to a sorting algorithm that (I thought) I came up with. I didn't know it already existed.

My algorithm is as follows:
1. Generate a random integer "a" between 0 and the length of the array to be sorted.
2. Generate another random integer "b" between 0 and array length minus "a".
3. Go to indices "a" and "a plus b" and compare.
4. Swap them if needed.
5. Repeat until sorted.

cee_yarr