In-Place LSD Radix Sort

  Рет қаралды 137,476

Musicombo

Musicombo

Күн бұрын

Пікірлер: 162
@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
@edwardclark6731
@edwardclark6731 2 жыл бұрын
A small seizure warning for this channel Algorithm sorts can be extremely loud, and seizures can be triggered by noises Algorithm sorts can flash a lot, and seizures can be triggered by flashing Be careful, and have a good stay!
@ERRORRubiksZeraBrand
@ERRORRubiksZeraBrand 7 ай бұрын
H O W D O I D O W N L O A D I T
@RashaMaya123
@RashaMaya123 7 ай бұрын
Do Double Binary Insertion Sort Reverse Selection Sort Stable Selection Sort Stable Cycle Sort Tree Sort (AA Balanced) Wiggle Sort Optimized Bubble Sort Unoptimized Bubble Sort Swapless Bubble Sort Sample sort Weaved Merge Sort Iterative Merge Sort Stable Merge Sort Radix LSD Sort Base 2 Optimized Cycle Sort
@ERRORRubiksZeraBrand
@ERRORRubiksZeraBrand 7 ай бұрын
@@RashaMaya123 DOES ANYONE KNOW HOW TO DOWNLOAD IT
@RashaMaya123
@RashaMaya123 7 ай бұрын
@@ERRORRubiksZeraBrand YES
@KeaveMind
@KeaveMind 2 жыл бұрын
Radix is by far my favorite Sort. The absolutely Alien sounds, the way it seems to scroll across the screen, the chaos that suddenly turns into satisfying patterns. Just gorgeous
@duothehybrid
@duothehybrid Жыл бұрын
The first video of this sort is one of my favorite, the absolute power of the echo at the end
@Tarou9000
@Tarou9000 9 ай бұрын
the scrolling of the screen is an effect of In-place LSD Radix Sort, not Radix Sort
@nhungduong3236
@nhungduong3236 7 ай бұрын
Same but in place or out of place as I want
@bitonic589
@bitonic589 2 ай бұрын
​@@nhungduong3236You like inefficient sorting algorithms which literally defeat the whole purpose of a sort?
@45_689
@45_689 3 жыл бұрын
never thought it'd be so satisfying seeing the swaps counter finally hit 10 million at some point, lol
@shanshansan
@shanshansan 3 жыл бұрын
9:34 for the 10 million swaps
@adrianodemetrio5607
@adrianodemetrio5607 2 жыл бұрын
Oh god it was so satisfying, I read this comment at the start of the video and checked every counter until the 10 million, it was always so close it hurted
@ABCDEFG-mw6wu
@ABCDEFG-mw6wu 2 жыл бұрын
i thought i was the only one
@phantomtroopyt
@phantomtroopyt Жыл бұрын
So satisfying 😭
@bobczech7774
@bobczech7774 Жыл бұрын
Imagine it says 9,999,999 😂😢
@azurbtkl3901
@azurbtkl3901 3 жыл бұрын
I love those "TA DI DI DA DA DI DI DA DA" parts when the small peaks come all together after the big figures
@gallium-gonzollium
@gallium-gonzollium 2 жыл бұрын
Me when searching a song I don’t remember the name of:
@KatzRool
@KatzRool 2 жыл бұрын
lmao
@edwardclark6731
@edwardclark6731 2 жыл бұрын
I like the OUUUUUUUUUUUUUUUUUUEEEEEEOOOOOOOOOEOEOEOEOEOEOEOEOEOEOEOEOEO at the end and the DUDUDUDUDUUUDUDUDUDUDUDUDUDUDUDUDUDDUDUDUDUDDUDUDUDUDUDDUDUDUUDD at the beggning
@DeveloperJake
@DeveloperJake 2 жыл бұрын
“TA DI DI DA DA DI DI DA DA” I feel like now would be a good time for us to tell you that there are no voice tones on the internet
@Ghal00xx
@Ghal00xx 3 ай бұрын
I also like radix sort but merge sorte is best for me
@LazyTheoRenders
@LazyTheoRenders 3 жыл бұрын
0:19 listen closely and you can hear the THX intro
@smo_cuberunners
@smo_cuberunners Жыл бұрын
but perfectly cutoff
@jaypaint4855
@jaypaint4855 2 жыл бұрын
Sounds really cool, and the LSD naming is hilarious PS I have a newfound obsession with sorting algorithms, especially these radix LSD ones
@edwardclark6731
@edwardclark6731 2 жыл бұрын
lsd stands for least significant digit, and this sort is sorta inneficient, however there are cool and efficent sorts like american flag sort
@idiotgame1026
@idiotgame1026 2 жыл бұрын
Same
@edwardclark6731
@edwardclark6731 2 жыл бұрын
And yes its absolutely hilarious it's named LSD sort -it fits-
@dna_rosepetal_wcue
@dna_rosepetal_wcue 6 ай бұрын
ok, *nerd*. i wonder who this **nerd** is.@@edwardclark6731
@theplayer12312
@theplayer12312 Жыл бұрын
LSD Radixsort has gotta be my favourite sort, just because how rugged it is, you can just about throw anything at it and it'll sort it in a respectable amount of time, and every sort takes a almost fixed amount of time, even on the in-place version, and the pre-final pass being sorted is just so satisfying to watch and hear, even if you throw the most bonkers list at it
@bitonic589
@bitonic589 3 ай бұрын
its ass try sorting [1, 2, 34859295492942, 8] with lsd radix sort it'll take long asf but insertion sort will do it instantly
@theplayer12312
@theplayer12312 3 ай бұрын
@@bitonic589 In what real world application would you put LSD Radix through a 4 digit array with wildly different values?
@soosboi
@soosboi Ай бұрын
​​@@bitonic589but here's the thing, insertion takes longer than than Radix LSD in huge arrays,which is why i think double insertion sort should be more used.
@kydatyvegrybatokeanvisoko2420
@kydatyvegrybatokeanvisoko2420 2 жыл бұрын
idk why im so obsessed with sorting algorithms especially cuz ik what basis most of them are going by to sort things but 5:15 i like this one it sparks joy
@LittleFarmLife2024
@LittleFarmLife2024 2 ай бұрын
00:05:30🍓
@417Owsy
@417Owsy Жыл бұрын
Radix Base 10 sort be like: 1. Check entire thing 2. blblblblblblblbl 3. done
@nhungduong3236
@nhungduong3236 7 ай бұрын
The orders you said are correct! Congratulations! Here's a billion dollars!
@kingcatthethird
@kingcatthethird 5 ай бұрын
1. Scan 2. EAUOHEBEAEBOEHAOEHO 3. blblblblblblblblblblblblblblblbl 4. errrrrrrrooooooiiiiiii
@TheOne_6
@TheOne_6 Жыл бұрын
your average radix in-place LSD base 10 consists of: -efficiency -sounding like an alien in a microwave -broken music disc
@DeveloperJake
@DeveloperJake 2 жыл бұрын
I like when it starts the Shepard tone for a minute
@letter_o_hyphen_letter_o
@letter_o_hyphen_letter_o 2 жыл бұрын
love that running radix start to finish on "radix final pass" creates a sort of shepard tone on the second(?) pass
@Plaston_
@Plaston_ 2 жыл бұрын
Theses frequances sweeps are quite good at stressing speakers, it help them softing their suspensions and test their bandwidth.
@jonnelk.pabico5402
@jonnelk.pabico5402 9 ай бұрын
1:46 えええええーぅううううううあおあううううう!!!!!
@frzferdinand72
@frzferdinand72 2 жыл бұрын
1:45 It sounds like music from Portal
@Somaiscariot
@Somaiscariot 3 жыл бұрын
Who else really misses dubstep? 💕
@distendedmist5840
@distendedmist5840 Жыл бұрын
I love it it is like a cheque printer chucking out stuff
@HamStar_
@HamStar_ 3 жыл бұрын
the fan favorite
@nameisChannelID
@nameisChannelID 3 жыл бұрын
This is what everyone comes for
@majman446
@majman446 10 ай бұрын
This is my favorite sort - and the weirdest one for sure. It's so weird that bro literally made a whole video dedicated to it.
@AndrewChumKaser
@AndrewChumKaser 3 ай бұрын
To explain what this sort is doing technically, it's actually startlingly simple: Take the value of the last digit of the element's number and sort them by it. (So for example if something's value is 1485, 5 is its what it sorts by). This digit is called the least significant digit, where the algorithm gets its name from. (LSD) Anyway, next do the same sort for the next digit to the left of each element in each category, or the next least significant digit of the element. Then do the same thing again for the next LSD, (repeating this for each and every number of digits in all the values, in this case four) then the final digit, or the most significant digit (MSD). Doing this will sort the list by its value. The reason why this works is because it's a stable sort: the elements are arranged in sorted form and stay that way between steps within their "categories" often called buckets, of the previous step. That's also why it "sounds" like it's raising in pitch in the final step, because if you think of it in terms of each bucket they're already sorted.
@BryndanMeyerholtTheRealDeal
@BryndanMeyerholtTheRealDeal 2 жыл бұрын
This, but with a million numbers. I wonder how fast it will be?
@mewity
@mewity 8 ай бұрын
computer crash moment
@costa-w3k
@costa-w3k 7 ай бұрын
I wonder how SLOW* would it be We are talking about Radix sort, man
@TechSY730
@TechSY730 4 ай бұрын
​@@costa-w3k _in-place_ radix sort is what is really slow. If you allow for auxiliary data structures (like a helper array), then radix sort becomes one of the best around, with O(n) runtime.
@AndrewChumKaser
@AndrewChumKaser 3 ай бұрын
Radix has a lot of overheads but it's also linear: it actually gets better in terms of efficiency compared to other algorithms with a lot of elements. Radix doesn't have to deal with an exponentially larger and larger number of comparisons to make as the elements increase, because it just checks the value of each one a number of times equal to its digits (in base 4 so each one has the same number of them). Other algorithms slow down a lot from so many elements to compare, but radix actually handles them like a champ because it essentially doesn't do any true "comparisons".
@jsmcfadyen
@jsmcfadyen 3 жыл бұрын
I thought in-place meant no writes to auxiliary arrays
@Musicombo
@Musicombo 3 жыл бұрын
Nope, doesn't have to be that strict! There's a bit of leeway with the definition. Some would argue a sort that doesn't use O(n) extra space can be considered in-place. Note that this doesn't have to be in terms of just arrays! Quicksort uses O(log n) stack space, yet it's universally considered in-place.
@mahinwahid5161
@mahinwahid5161 3 жыл бұрын
Musicombo I like your funny words magic man
@Musicombo
@Musicombo 3 жыл бұрын
Lol, thank you? 😅
@smaybius
@smaybius 2 жыл бұрын
The aux space is just for the buckets and determining them. The items in the array are never moved out of place
@RashaMaya123
@RashaMaya123 7 ай бұрын
​@@Musicombo Do Over 300 Sorting Algorithms In Under An Hour Reversed Inputs
@ishu4227
@ishu4227 Жыл бұрын
what i think radix does is it scans the thing, and repeatedley slices the pieces into 10 little pieces, and i guess this happens so much it gets sorted.
@hoodiedude4204
@hoodiedude4204 Жыл бұрын
LSD means least signifikant digit. It sorts the array based on only the ones place, then it sorts THAT array based on the tens place and then it sorts it based on the hundreds place and so on. Its always only the ones, tens and hundreds etc places that is considered, not the entire numbers, hence the comparisons counter stays at 0
@DFPercush
@DFPercush Жыл бұрын
Creel has a good video explaining radix sort : /watch?v=_KhZ7F-jOlI
@DonnaDinaMusic
@DonnaDinaMusic 2 жыл бұрын
у меня в глазах рябит от этого но я не могу оторваться
@ProTheRobloxer
@ProTheRobloxer Жыл бұрын
Me: What’s 1+1? My brain: 0:06 My brain: “3”
@LittleFarmLife2024
@LittleFarmLife2024 2 ай бұрын
I think 00:07:33 is kinda Creeepy (For Me) Broken Machine! 404 040 440 004 444 000 044 400
@twostepverification590
@twostepverification590 Жыл бұрын
I can't believe the whole sorting board moved in a single frame
@neurotoxic1830
@neurotoxic1830 2 жыл бұрын
Oh my god it sometimes sounds like peeling off tape from the roll but continuous
@maxvangulik1988
@maxvangulik1988 2 жыл бұрын
Imagine if someone made bad apple in this software
@ryoukaip
@ryoukaip 2 жыл бұрын
lmao its quita hard tho edit: *quite
@mewity
@mewity 8 ай бұрын
badapplesort
@nhungduong3236
@nhungduong3236 7 ай бұрын
It's logically impossible
@maxvangulik1988
@maxvangulik1988 7 ай бұрын
@@nhungduong3236 could approximate it
@rosanafalcao4038
@rosanafalcao4038 2 жыл бұрын
5:28 First one to sound different 6:01 First one to sound *almost completely* different
@LazyTheoRenders
@LazyTheoRenders 3 жыл бұрын
0:31 what was the point in that
@CSDragon
@CSDragon 3 жыл бұрын
moving on to the next sort, which was "what happens if the array is sorted backwards" sort
@Matheus_Braz
@Matheus_Braz 3 жыл бұрын
@@CSDragon how does this even work though, even if its all mixed up, repeating it enough times somehow brings it back to normal?
@CSDragon
@CSDragon 3 жыл бұрын
@@Matheus_Braz it's actually showing the worst possible case when it's completely backwards like that.
@Matheus_Braz
@Matheus_Braz 3 жыл бұрын
@@CSDragon yeah but how does repeating it, even when its backwards, just magically bring it back to normal??
@edwardclark6731
@edwardclark6731 2 жыл бұрын
@@Matheus_Braz here, so basically, it takes it, (i presume) and it makes it into groups, and keeps on dividing it into small pieces, and then grouping them into order, leaving a small grey bit, which is added onto the base, thus sorting it! i hope i helped! tl;dr: it divides alot, then makes it triangle with grey, added to white.
@陳娟娟-t6f
@陳娟娟-t6f 3 ай бұрын
Radix LSD Sort In-Place Base-10 Cool, Like 1. Random 2. Reversed 3. Almost Sorted 4. Many Similar 5. Scrambled Tail 6. Scrambled Head 7. Final Merge Pass 8. Sawtooth Input 9. Final Merge Reversed Array 10. Reversed Final Merge 11. Pipe Organ 12. Final Radix Pass 13. Final Pairwise Pass 14. Binary Search Tree 15. Heapified Input 16. Smooth Input 17. Poplar Input 18. Half-Reverse Input 19. Even Reverse Odd In-Order 20. Even In-Order Odds 21. Even Ascend, Odd Desascend 22. Bell Curve 23. Perlin Noise Curve 24. Perlin Curve 25. Triangular Input Done
@陳娟娟-t6f
@陳娟娟-t6f 3 ай бұрын
In-Place LSD Radixsort (Base-10): Reverse Sort
@LittleFarmLife2024
@LittleFarmLife2024 2 ай бұрын
Everything is same, Except 00:05:30!
@demirbey8068
@demirbey8068 2 ай бұрын
Oh its the "Why so quiet?" *3 seconds later* "Oh, thats why" guy.
@Ceafto2007
@Ceafto2007 3 жыл бұрын
Radix sort base 2? Or base 1?
@Ceafto2007
@Ceafto2007 3 жыл бұрын
@Nehemiah Britt no, I mean, how would base one and base two work?
@signisot5264
@signisot5264 3 жыл бұрын
@@Ceafto2007 Base 2 would work similar to base 10 but with 2 buckets instead of 10 (Likely takes more combovers), but I'm not sure if there's a base 1 edition
@HamStar_
@HamStar_ 3 жыл бұрын
base 1: it moves everything into the same bucket each time, but in a different order equivalent to bogosort
@signisot5264
@signisot5264 3 жыл бұрын
@@HamStar_ lol bogo
@Ceafto2007
@Ceafto2007 3 жыл бұрын
Could be an interesting video
@Terpster77
@Terpster77 3 жыл бұрын
RADIX
@LSCrazyCabCo
@LSCrazyCabCo 2 жыл бұрын
but is there such thing as an unsorting algorithm?
@edwardclark6731
@edwardclark6731 2 жыл бұрын
Bogosort
@ericcartman80085
@ericcartman80085 2 жыл бұрын
shuffle
@My1xT
@My1xT Жыл бұрын
yeah this looks so trippy this algo HAS TO have taken some drugs
@MissyStarofficialchannel
@MissyStarofficialchannel 8 ай бұрын
00:05:30❤️‍🔥❤️‍🔥❤️‍🔥
@Button_Pushing
@Button_Pushing 6 ай бұрын
How does this algorithm work?
@UmbralKnight1344
@UmbralKnight1344 4 ай бұрын
This sorting algorithm works by looking at a certain digit of every data point each pass, going from smallest to largets (i.e. 1s place, then 10s place, then 100s place, etc.) and sorting them in to n (n being the base used, such as base 10 in this video) "buckets" based on the digit it looks at. once it goes through all the digits, the array is sorted.
@edwardclark6731
@edwardclark6731 2 жыл бұрын
use like base two or base 5894
@itryen7632
@itryen7632 3 жыл бұрын
WHERE'S THE VOLUME >:(
@Musicombo
@Musicombo 3 жыл бұрын
...Huh?
@peace.divinity
@peace.divinity 3 жыл бұрын
@@Musicombo every radix lsd has loud sound...
@Musicombo
@Musicombo 3 жыл бұрын
Yes... and?
@Anopeng
@Anopeng 2 жыл бұрын
After these videos I realized that I have sortophobia...
@hydrate6913
@hydrate6913 3 жыл бұрын
i change my mind.
@idiotgame1026
@idiotgame1026 2 жыл бұрын
9:34
@LittleFarmLife2024
@LittleFarmLife2024 2 ай бұрын
Bill...IGuess
@uncreativename957
@uncreativename957 5 ай бұрын
The sound when my computer is not computering
@serg_sel7526
@serg_sel7526 11 ай бұрын
Basically it stabilly sorts every number by first digit, then second, then third, then fourth and etc... Sadly, it can sort only digits...
@hollyhello8352
@hollyhello8352 3 жыл бұрын
no idea how it works, but its so cool!!!
@smaybius
@smaybius 3 жыл бұрын
In normal LSD radix, the array is loaded into buckets of the values of the lowest digit, then unloaded back to the array, then rinse and repeat for the next digit up
@Fera-gr5mm
@Fera-gr5mm 2 жыл бұрын
@@smaybius Technically the bucket part is implementation detail, you just need to known how to sort the items by n-th digit
@hiatus0017
@hiatus0017 2 жыл бұрын
what app is this?
@sbuydi_sweeddat
@sbuydi_sweeddat 3 жыл бұрын
Start Redix from Final Redix then stop at Final Redix and repeat
@keanjuguetaphkinemastertv4885
@keanjuguetaphkinemastertv4885 2 жыл бұрын
All Musicombo Sorting Videos
@itryen7632
@itryen7632 3 жыл бұрын
This is looking like one of those Japanese music videos now
@Newvik2Bsystem
@Newvik2Bsystem Жыл бұрын
LSB Radixsort in Embrassed No waveinvert mono only
@badboycorolla86
@badboycorolla86 Жыл бұрын
cool video, i always want that app on my computer
@52markin
@52markin Жыл бұрын
Seems like the thx intro
@itryen7632
@itryen7632 3 жыл бұрын
FUCK YEAH SORT IT ROOOIGHHT
@Questiala124
@Questiala124 11 ай бұрын
10:00 10 million at 10 minutes for the 10^0th time!
@minhluat-6789
@minhluat-6789 6 ай бұрын
Xin Chúc Mừng Bạn Nhận Được 10.000.000 Người Đăng Ký
@Arufi000
@Arufi000 2 ай бұрын
this is what lsd feels like
@S1LLYSC3N3C0R3LARA
@S1LLYSC3N3C0R3LARA 5 күн бұрын
7:20 my brain at school:
@andysetiawanart7669
@andysetiawanart7669 2 жыл бұрын
Don't base 10, should be base 16 in radix LSD Sort in place
@aeezem
@aeezem 2 жыл бұрын
watch this on lsd
@andysetiawanart7669
@andysetiawanart7669 2 жыл бұрын
Seharusnya base 16 jangan 10, kalau pilih 10 kurang sempurna lihatnya
@xirex4705
@xirex4705 3 жыл бұрын
but what is update.
@TheDudeThatDoesNothing
@TheDudeThatDoesNothing 5 ай бұрын
0:51 THX Intro
@daisyreeabalde7888
@daisyreeabalde7888 6 ай бұрын
25 Ways to In-place LSD Radixsort Base-10
@Buckybadgerwisco
@Buckybadgerwisco 2 жыл бұрын
this is just base 10
@Indrakrn
@Indrakrn 3 жыл бұрын
Sounds like lagging ps2 games
@ert5419
@ert5419 2 жыл бұрын
WHAT
@Caterblock
@Caterblock 3 жыл бұрын
Another one
@leyasep5919
@leyasep5919 2 жыл бұрын
Funny but inefficient 😕
@tgb2024
@tgb2024 2 жыл бұрын
krnl sort 4.0
@ethanramcel2749
@ethanramcel2749 3 жыл бұрын
Fast
@ethanramcel2749
@ethanramcel2749 3 жыл бұрын
Slow
@edwardclark6731
@edwardclark6731 2 жыл бұрын
525 ms. ITS SLOW
@lephihung10
@lephihung10 2 жыл бұрын
/tp 65.50 68.56 65.50
@chrisrodriguezm13
@chrisrodriguezm13 Жыл бұрын
This isn’t Minecraft
@liondyi
@liondyi 4 ай бұрын
it’s called LSD for a reason
Gravity Sort - Color Circle
6:10
Musicombo
Рет қаралды 43 М.
ENC4D3NAD4 VIDEO FINAL
11:36
Jean Franco López Ramírez
Рет қаралды 132
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
*SEIZURE WARNING* Pushing Sorts to their Limits
59:06
Musicombo
Рет қаралды 5 МЛН
Visualization of Radix sort
7:02
udiprod
Рет қаралды 70 М.
[original w0rthy style] Base 10 in-place LSD radix sort on ArrayV
23:25
AceOfSpadesProduc100 himself
Рет қаралды 156 М.
Shell sort - Average case vs Worst case
3:07
BitonicDev
Рет қаралды 2,6 М.
90 Sorts on Large Inputs - Scatter Plot
1:01:27
Musicombo
Рет қаралды 223 М.
8 Sorting Algorithms in Minecraft
3:38
Cymaera
Рет қаралды 965 М.
Every Sorting Algorithm Explained in 120 minutes (full series)
1:57:33
Kuvina Saydaki
Рет қаралды 76 М.
LSD Radix Sort
12:32
Musicombo
Рет қаралды 59 М.
LSD Radix Sort with High Bases
3:43
SlayerNate26
Рет қаралды 62 М.