Тёмный

Gravity Sort (Beadsort) 

Musicombo
Подписаться 26 тыс.
Просмотров 26 тыс.
50% 1

Visit our community Discord here: / discord
Check out the NEW home for ArrayV here: github.com/gaming32/ArrayV-v4.0
Check out the Mother 1+2 Restoration project: / discord
Thank you to Kalmar Republic and Segaking584 for supporting my videos!
Join this channel to get access to perks:
/ @musicombo

Наука

Опубликовано:

 

1 апр 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 51   
@Musicombo
@Musicombo 3 года назад
Visit our community Discord here: discord.com/invite/2xGkKC2 Check out the NEW home for ArrayV here: github.com/gaming32/ArrayV-v4.0
@tonidufrene5845
@tonidufrene5845 3 года назад
@Valentino Del Monaco que es señor queso XD He always says that, in his RU-vid videos.
@user-gt7qf2nl9k
@user-gt7qf2nl9k 2 года назад
gravity sort step 1: take a look step 2: *???* step 3: profit
@aadenboy
@aadenboy 2 года назад
dunno if you'll see this but gravity sort works like this think of an abacus five rows, five columns, each with beads stacked corresponding to the digit o---- o-o-- ooo-- ooo-o ooooo take that abacus and turn it on it's side, all the beads slide to the new bottom, and now it's sorted here's a smaller example I can type out o-- o-o ooo NEXT FRAME \-o- -oo ooo NEXT FRAME --o -oo ooo
@thermitty_qxr5276
@thermitty_qxr5276 Год назад
Use the *GRAVITY*
@bitonic589
@bitonic589 10 месяцев назад
@JaydenRandomsOfficial actually the whole point of the sort is that is sorts by simulating gravity
@letter_o_hyphen_letter_o
@letter_o_hyphen_letter_o Год назад
1: Observe the list 2: Unleash the s̩͙͖̋͛͟i̵͓͙̱͚̎͟n̷̶̯͉̊̽̐ͦ͘g̴̶̛̮̣͙͠û̶͙̽̿͆̈ḻ̸͈ͧ͑̓̓̀͡ă̶̸̝ͦ͊̿͋͞r̶̷̲͍̭͐̾̀͟i̵͓͙̱͚̎͟t̴͕͖͓̀y̯̤͑́́̓́ 3: Success
@watcher314159
@watcher314159 3 года назад
Gravity sort always looks the best and radix always sounds the best. No exceptions.
@blacklight6090
@blacklight6090 3 года назад
Nah bogo sort sounds better
@watcher3372
@watcher3372 3 года назад
@@blacklight6090 Nah Slow sort sounds better
@maurolionelmipianoyyo11
@maurolionelmipianoyyo11 2 года назад
Slow sort is slow
@maurolionelmipianoyyo11
@maurolionelmipianoyyo11 2 года назад
@@watcher3372 i DARE you to write a comment of 222 characters at slow sort speed
@HeidenLam
@HeidenLam 2 года назад
no exceptions.
@thermitty_qxr5276
@thermitty_qxr5276 Год назад
Step 1: Scan Step 2: *USE THE GRAVITY* Step 3: Done
@omegahaxors3306
@omegahaxors3306 10 месяцев назад
Just make sure to turn your monitor back right-side-up if you were using the "make loading bars faster" trick otherwise you'll just have all the elements falling to the side.
@user-zw9lu9nv2n
@user-zw9lu9nv2n 8 месяцев назад
1. Do some writes to auxiliary arrays 2. Do millions of writes to the main array 3. Success
@smaybius
@smaybius 3 года назад
I thought gravity sort had O(n^2) memory, judging by the number of writes to auxiliary arrays. An explanation that I heard is that each number is stringed with O(n) booleans
@Musicombo
@Musicombo 3 года назад
That's only because ArrayV's distribution is usually 1 to n.
@TheRealDanTheManYT
@TheRealDanTheManYT 2 года назад
NERDS
@hydrate6913
@hydrate6913 2 года назад
@@TheRealDanTheManYT ayo your rude they are just trying to say sum stuf
@edwardclark6731
@edwardclark6731 Год назад
@@TheRealDanTheManYT i love that candy too
@NotRealChatGPT
@NotRealChatGPT Год назад
i like your funny words magic man
@psychoDon525
@psychoDon525 Год назад
I thought watching this would help me understand gravity sort, but I think I'm just more confused than ever
@bitonic589
@bitonic589 10 месяцев назад
it simulates gravity
@konstantinsotov6251
@konstantinsotov6251 10 месяцев назад
It never compares the numbers, it literally changes them, so during the sort your array may have no numbers from original list at all, but in the end it somehow works out Also, the sort only works for integral types (no floats, strings or anything else). Unless you normalize all of the numbers to be positive before sorting occurs, you can not sort negative numbers as well. It's space complexity is dependent on the maximum element in the list (as well as time complexity). This indeed is a very unusual sort
@nguyenthai3140
@nguyenthai3140 6 месяцев назад
I too
@not_estains
@not_estains Месяц назад
imagine this: FU sort, it counts how many numbers there are in the array (n) and rewrites them to be 1 to n
@tonidufrene5845
@tonidufrene5845 3 года назад
Cool!
@TwilightStormshi
@TwilightStormshi 9 месяцев назад
Gravity goes both ways.
@user-ye3dk4yz8g
@user-ye3dk4yz8g 3 года назад
shuffles: hey! I- gravity sort: FLATTEN. REALIGNNNNNNNNNNNNNNN
@theresa.y5221
@theresa.y5221 Год назад
4:01
@theresa.y5221
@theresa.y5221 Год назад
6:05
@theresa.y5221
@theresa.y5221 Год назад
6:04
@omegahaxors3306
@omegahaxors3306 10 месяцев назад
sandsort
@vk8a8
@vk8a8 7 месяцев назад
How practical is it?
@Fifasher2K
@Fifasher2K 5 месяцев назад
Yes
@filmblox9845
@filmblox9845 3 месяца назад
It's quite recursive and slow for a distribution sort, even though it's not the most impractical. Use pigeonhole instead if you're actually sorting something.
@Osmone_Everony
@Osmone_Everony 8 месяцев назад
WTF is going on? I've got better things to do but I can't stop watching. 😅
@Scudmaster11
@Scudmaster11 Месяц назад
It's gravity sort It's the coolest looking
@Osmone_Everony
@Osmone_Everony Месяц назад
@@Scudmaster11 I know that. My question was, why am I stuck watching this? 😆
@Scudmaster11
@Scudmaster11 Месяц назад
@Osmone_Everony because its intresting and hard to stop?
Далее
LSD Radix Sort
12:32
Просмотров 46 тыс.
In-Place LSD Radix Sort
13:11
Просмотров 116 тыс.
Visualizing 70 Sorting Algorithms
29:24
Просмотров 56 тыс.
90 Sorts on Large Inputs - Scatter Plot
1:01:27
Просмотров 114 тыс.
The 1,200 Year Maths Mistake
19:10
Просмотров 2 млн
The Bubble Sort Curve
19:18
Просмотров 444 тыс.
50+ Sorts, Visualized - Reversed Inputs
27:10
Просмотров 215 тыс.
8 Sorting Algorithms in Minecraft
3:38
Просмотров 901 тыс.
I Made Sorting Algorithms Race Each Other
8:24
Просмотров 28 тыс.
7  ПАРАДОКСОВ БЕСКОНЕЧНОСТИ
36:02
10 FORBIDDEN Sorting Algorithms
9:41
Просмотров 798 тыс.