Visualization of Radix sort

  Рет қаралды 90,253

udiprod

udiprod

Күн бұрын

Пікірлер: 321
@ChaoticKatOwO
@ChaoticKatOwO 7 ай бұрын
The fact that they've been using the same graphics for these videos for 15 YEARS is impressive
@mirabilis
@mirabilis 6 ай бұрын
Or lazy.
@ThoincTheNugget
@ThoincTheNugget 6 ай бұрын
If it ain’t broke don’t fix it
@celeryman14
@celeryman14 6 ай бұрын
​@@ThoincTheNugget Exactly
@i_teleported_bread7404
@i_teleported_bread7404 6 ай бұрын
I'm not really an expert, but when would a sorting algorithm be used in graphics?
@ChaoticKatOwO
@ChaoticKatOwO 6 ай бұрын
@@i_teleported_bread7404 it's not really used that often, but I'd like to think that maybe they would at least try to change something about the graphics they're using instead of it just being the exact same every single time??
@mikumikuareka
@mikumikuareka 7 ай бұрын
I love the Radix sort algorithm. I somehow came up with it on my own when I was only starting to learn how to code, and I felt like a genius until I discovered that it was already invented 70+ years before I was even born.
@specy_
@specy_ 7 ай бұрын
Welcome to computer science!
@jaydentt
@jaydentt 7 ай бұрын
well hey just cuz someone else came up with it first doesnt mean ur not super smart for also coming up with it in isolation . . . !
@bo-dg3bh
@bo-dg3bh 7 ай бұрын
you are still a genius by anybody's standard
@ishu4227
@ishu4227 7 ай бұрын
i've gone through thinking i've invented a new sort TOO MANY TIMES.. i feel you bro
@ilikecreeper331
@ilikecreeper331 6 ай бұрын
me too! for me it was bubble sort, i called it compare sort because it compared two numbers. I thought I was a genius
@HiroTeaShi
@HiroTeaShi 7 ай бұрын
This is the most accessible explanation of radix sort I've seen. The sound of the tiles falling is also very satisfying
@samcnut
@samcnut 7 ай бұрын
Babe wake up, new sorting algorithm just dropped
@thomaskaldahl196
@thomaskaldahl196 7 ай бұрын
Beat me to it! Was going to make this exact comment
@RinInABin
@RinInABin 7 ай бұрын
The algorithm itself is actually older than paper drinking straws
@Rando2101
@Rando2101 7 ай бұрын
​@@RinInABin who invented paper straws anyways
@CyberCat3O
@CyberCat3O 7 ай бұрын
This exact sentence ran through my mind when I clicked on this video
@algodoomarbleracing
@algodoomarbleracing 7 ай бұрын
Yay
@jumpingSpiders
@jumpingSpiders 7 ай бұрын
I don’t mind watching the video again for the visuals only
@jivejunior8753
@jivejunior8753 7 ай бұрын
The audio too tbh
@jumpingSpiders
@jumpingSpiders 7 ай бұрын
@@jivejunior8753 true
@jumpingSpiders
@jumpingSpiders 7 ай бұрын
@@jivejunior8753 true
@onelazynoob15
@onelazynoob15 7 ай бұрын
non-comparison based sorting algs stay winning, this has been one of the most satisfying visualizations I've seen
@adiaphoros6842
@adiaphoros6842 6 ай бұрын
While the elements aren't compared to each other, they (more specifically their digits) are compared to a constant to determine which bucket they should be in, so LSD sort isn't totally non-comparison.
@feritperliare2890
@feritperliare2890 6 ай бұрын
​@adiaphoros6842 that's a really pedantic way to view the term and removes the useful info we get when we use agreed upon terms like comparison or non comparison algorithms
@theblockybanana5537
@theblockybanana5537 6 ай бұрын
If we compare nothing we have no way of knowing if anything is sorted. Pretty fair to say this is as close as we can get
@jakistam1000
@jakistam1000 4 ай бұрын
@@feritperliare2890 This assumes familiarity with sorting algorithms terminology. You jump to pedantry, but this could just be lack of knowledge
@lazerpie101_A
@lazerpie101_A 16 күн бұрын
@theblockybanana5537 sleep sort
@nicreven
@nicreven 7 ай бұрын
Oh wow Radix sort is so much simpler than I thought it was Didn't really consider looking into it that much; all I knew about it was that it was non comparing
@thevalarauka101
@thevalarauka101 7 ай бұрын
same lol
@joshuahudson2170
@joshuahudson2170 7 ай бұрын
Fun fact. It's linear. The N log N barrier has been broken.
@nicreven
@nicreven 7 ай бұрын
@@joshuahudson2170 .... pardon??
@gmdrandom6287
@gmdrandom6287 7 ай бұрын
@@joshuahudson2170isn't the complexity based on the length of the longest number?
@joshuahudson2170
@joshuahudson2170 7 ай бұрын
@@gmdrandom6287 Depends on use case. Sometimes you really do have to sort more than 4 billion 32 bit integers.
@konignickerchen7265
@konignickerchen7265 6 ай бұрын
I love the details in the machines designed to mimic the sorting behavior, like how the sorting head has wheels to shift the blocks, or the rails of the decimal radix sort.
@protondium_8927
@protondium_8927 7 ай бұрын
Time to visualize radix sort for the first time!
@imsuchalonleyboy
@imsuchalonleyboy 7 ай бұрын
And pigeonhole sort
@csongorzih5094
@csongorzih5094 7 ай бұрын
Ahhh this is even more satisfying than the robots sorting. With the high contrast and the motion blur... it turned out really awesome
@rodrigoqteixeira
@rodrigoqteixeira 7 ай бұрын
0:45 ROBOT POLLUTING 😲🔥
@ishu4227
@ishu4227 7 ай бұрын
REAL????
@LuizDahoraavida
@LuizDahoraavida 7 ай бұрын
It is garbage collecting the lookup table
@rodrigoqteixeira
@rodrigoqteixeira 7 ай бұрын
@@LuizDahoraavida oh, got it, fancy interpreted languages with garbage collecting.
@tinthatisfullofbeans
@tinthatisfullofbeans 6 ай бұрын
LITTERING HARMS THE EARTH 😡😡😡😡
@rodrigoqteixeira
@rodrigoqteixeira 6 ай бұрын
@@tinthatisfullofbeans 😡😡😡
@1e1001
@1e1001 7 ай бұрын
as a fun tip, a base-10 or base-26 (alphabetical) radix sort is pretty easy to do by hand, so if you ever need to sort a stack of papers it's pretty easy to just radix them up. usually i do an MSD radix and then insertion sort each "bucket" before combining everything together, but an LSD sort might also work
@PanthereaLeonis
@PanthereaLeonis 6 ай бұрын
I imagine for alphabetical it's going to be difficult using LSD, say you're sorting "alphabetize" and "dog". If you don't manage to put the correct amount of "trailing zeroes" on "dog" to make it "dog00000000" so it's the same length, lsd will just make a mess. A computer can do so easily, but a human might have some trouble. For numbers though, as long as you know the max length to start with, LSD might be best.
@lydiat.5214
@lydiat.5214 4 ай бұрын
this is how postal services sort mail into exact delivery order, but instead of 10 bins to divide with, it’s more or less 200 bins that machines use to physically separate letters which allows the mail to be sorted in just two passes, saving time (i’ve worked with sorting letters like this for a few years, and i’m glad i finally found a video that explains what’s actually going on so i don’t have to anymore. sharing knowledge is fun, but this one is such a mouthful)
@catmacopter8545
@catmacopter8545 7 ай бұрын
Your audio and visuals are top-notch as always 😊
@intangiblematter_misc
@intangiblematter_misc 7 ай бұрын
This channel is probably the only one I've been just as excited to see a new video of as a Computer Science student as I was when I was 13. Love how you explain things!
@mchevre
@mchevre 13 күн бұрын
I have no idea why this was suggested to me or why I actually watched it but somehow it was satisfying.
@mikethewhizz5085
@mikethewhizz5085 13 күн бұрын
Love how the robot just yeets the color cards at the end
@askplays
@askplays 7 ай бұрын
We have never been so back sorting bros
@ihavetwofaces
@ihavetwofaces 6 ай бұрын
I've genuinely never understood radix sort until right now. You've made it completely intuitive. I thought the magic of radix sorting was in choosing what radix to use, but now I see that the radix is actually just the base of the numbers you're using, not an arbitrary number that you can select to get a different level of performance.
@TrianguloY
@TrianguloY 7 ай бұрын
Typo fixed: pervious -> previous (first seconds of the video)
@bleepingkleepers8971
@bleepingkleepers8971 7 ай бұрын
Yknow, im kinda pervious myself 🗣️🗣️🗣️
@thevalarauka101
@thevalarauka101 7 ай бұрын
pervious = not impervious?
@burnstjamp
@burnstjamp 7 ай бұрын
This is a wonderful explanation! I was already familiar with this sort, but never fully understood how it led to a successful sort. The 'stable' property you described made it really clear!
@guilhermedamasceno343
@guilhermedamasceno343 7 ай бұрын
It's always a nice thing to see a new video on one of my favorite channels on CS.
@Zilberlex
@Zilberlex 7 ай бұрын
Top notch video. You are making the world a better place by making these videos.
@AGreySky
@AGreySky 7 ай бұрын
punch card sorters work this way. it has twelve pockets, for the twelve hole positions per column, plus a pocket for errors. very cool!
@somebodyelse9130
@somebodyelse9130 7 ай бұрын
Wow, this is the first time I've read or listened to an explanation of radix sort, but it's so simple and intuitive. I assumed it would be more complicated, like quicksort.
@lunienul
@lunienul 7 ай бұрын
i love that u guys are still going after all these years
@NguyenMinhPhu664
@NguyenMinhPhu664 7 ай бұрын
Radix sort is my favorite sorting algorithm, I've always waited for this! it felt like many years since the last video I saw on this channel!
@NguyenMinhPhu664
@NguyenMinhPhu664 7 ай бұрын
Oh it is
@jeremychicken3339
@jeremychicken3339 7 ай бұрын
You finally did it! I was asking for this! Now I wanna see Gnome Sort and how it is different to Insertion Sort.
@JohnSmith-of2gu
@JohnSmith-of2gu 7 ай бұрын
Glad to see this channel is still making great videos! You are GREAT and at making visualizations that are helpful. That radix sorting machine took a long time to animate I bet, worth it though.
@shawn576
@shawn576 3 ай бұрын
This is an incredibly good video. I've seen several videos to try understanding radix sort and none of them made sense. This video makes perfect sense and is easy to follow.
@weylinwest9505
@weylinwest9505 7 ай бұрын
Glad you're back!
@88michaelandersen
@88michaelandersen 7 ай бұрын
This is one of the best channels on KZbin.
@windestruct
@windestruct 4 ай бұрын
I always thought it had to do something with the LSD drug. Thanks for explaining this sort in more detail.
@UriahStuff
@UriahStuff 4 ай бұрын
Thank you so much! I had trouble understanding how radix sort works, but your demonstration finally made me understand.
@nubnoobbo
@nubnoobbo 2 ай бұрын
Glad you're still doing these videos
@ManiTheObbyist
@ManiTheObbyist 7 ай бұрын
Hi! I like watching your vids of visualizing sorting algorithms,you actually halped making me understand heap sort and stooge sort! Keep on the good work!
@huhneat1076
@huhneat1076 7 ай бұрын
It's not a real sort if the little robot guys didn't do it
@golden_rod
@golden_rod 6 ай бұрын
@bentos117
@bentos117 4 күн бұрын
yes
@binathiessen4920
@binathiessen4920 7 ай бұрын
The block sounds are very satisfying.
@kosolomon123
@kosolomon123 7 ай бұрын
i love this channel, if my children wants to learn algorithms i will bring them here.
@engineerasifali
@engineerasifali 7 ай бұрын
Watching your videos is always a treat (regardless of one knows the concept or not!) 🙂 Keep posting and keep educating.
@theprofessor107
@theprofessor107 6 ай бұрын
Wow. Best sorting video I have ever come across! Kudos!
@theoreticalphysics3644
@theoreticalphysics3644 7 ай бұрын
Ho boy this gives me some wild college nostalgia and whiplash seeing a new upload like this.
@ok-alarm
@ok-alarm 6 ай бұрын
THIS IS NICE! I'm glad i found this channel
@20LeeBrian1
@20LeeBrian1 6 ай бұрын
I like how a robot casually discards a legend card
@Tyler-ze4tg
@Tyler-ze4tg 7 ай бұрын
I watched some of your super old videos a few weeks ago, didn’t know y’all still upload :o
@clairecelestin8437
@clairecelestin8437 7 ай бұрын
I love Radix. One of my favorite sorting algorithms, both for its efficiency and for its beauty
@dougaltolan3017
@dougaltolan3017 6 ай бұрын
Efficiency??? Restacking the sort piles is horrendous. Requires double the storage of the original list.
@average792
@average792 6 ай бұрын
Woah, finally. Been waiting for 2 years
@cookiedoughflow6957
@cookiedoughflow6957 7 ай бұрын
This is the one I was having the hardest time understanding so I’m excited for this video!
@LuizDahoraavida
@LuizDahoraavida 7 ай бұрын
This channel is such a gem
@problemsfan4132
@problemsfan4132 7 ай бұрын
I missed these videos! glad to see you upload again :D
@yoshidude64595
@yoshidude64595 7 ай бұрын
I'm a big fan of radix sort, but I prefer bucket sort, which is quite similar. Bucket sort takes significantly more memory, but is several times faster because you can sort by multiple binary digits at once. I've found that doing a 4-bit bucket sort is a comfortable medium between memory usage and speed.
@AbhayGupta-oz1ix
@AbhayGupta-oz1ix 5 ай бұрын
That is something like a straight drive by a batsman. Can glare it again and again you will still praise the way it has been played.
@ametrinefirebird7125
@ametrinefirebird7125 7 ай бұрын
Awesome having all the answers to my questions about radix all in one video!!
@kenhaley4
@kenhaley4 7 ай бұрын
Back in the 60's I worked with pre-computer punch card systems. The LSD Radix Sort is the precise algorithm we used to sort stacks of punch cards on any desired field (a field being a contiguous set of columns on the card containing some number that we needed to sort on). Watching the animation brought back memories of those times.
@hexzyle
@hexzyle 7 ай бұрын
RETURN OF THE UDIKING
@Tasarran
@Tasarran 6 ай бұрын
Least Significant Digit Radix Sort is my favorite sort!
@cariyaputta
@cariyaputta 6 ай бұрын
Amazing visualization, as always.
@Wulfhartus
@Wulfhartus 7 ай бұрын
The pedagogy of this video is huge
@Dadax9398
@Dadax9398 7 ай бұрын
Very good explanation ! The animations especially really helped
@StickStep
@StickStep 7 ай бұрын
The world has cleared up so much that a new video about sorting has appeared!
@DennisTheZZZ
@DennisTheZZZ 6 ай бұрын
Thanks to the new number sorting machine, we‘re one step closer to a vizualization of Gravity Sort!
@ultrio325
@ultrio325 16 күн бұрын
I love the physical representation of all the sorting algorithm!
@AlexAnder-yj1qs
@AlexAnder-yj1qs 3 ай бұрын
YEAHHHH so glad they’re still doing these!!! 🎉🎉🎉 We need more!!!
@henryzhang3961
@henryzhang3961 6 ай бұрын
most satisfying animation and sound design
@lexo632
@lexo632 6 ай бұрын
A NEW SORTING ALGORITHM HAS ENTERED THE FRAY.
@Wonky2
@Wonky2 7 ай бұрын
Oh wow, it's such a simple and elegant algorithm!
@not_estains
@not_estains 7 ай бұрын
i love radix (LSD) sort so much im so glad they did a video on it
@ThatGuywithNoFacecam
@ThatGuywithNoFacecam 4 ай бұрын
Finally! LSD and MSD Radix! Fun fact: both Radix sorts are in base 2 except at the end, where random 4-digit decimal (base-10) numbers are sorted in, well, base-10.
@digitalizedmind6784
@digitalizedmind6784 7 ай бұрын
Hell yeah, love these sorting algorithm videos
@elusivelord
@elusivelord 7 ай бұрын
I remember asking for pigeonhole sort, and now we have it!
@ZekeRaiden
@ZekeRaiden 6 ай бұрын
I love radix sort. It's conceptually so simple, it seems like it shouldn't even work, and requires very few comparisons to make an effective sort. But its simplicity and efficiency comes with a different cost; it's trading time for space. You need additional address space to store the partially sorted list. In systems that have plenty of memory, radix sort is a great choice. In systems with very limited capacity, however, radix sort may be impossible or significantly slower than in-place alternatives, especially when stability isn't relevant.
@programmertheory
@programmertheory 3 күн бұрын
radix sort can also be done via the counting sort method, if you don't want to use buckets
@speedsystem4582
@speedsystem4582 7 ай бұрын
Oh, boy... This was all it took to get me subscribed.
@soup9242
@soup9242 7 ай бұрын
Finally, I can understand the sorting algorithm that looks like black magic when applied to a 3D visualiser.
@mrmurpleqwerty4838
@mrmurpleqwerty4838 7 ай бұрын
my favorite channel is back! yay!
@nanchoparty
@nanchoparty 7 ай бұрын
YES! YES! YES! YES! IT'S FINALLY TIME FOR RADIX!!!! THANK YOU UDIPROD! 🙏
@SpectroliteDS
@SpectroliteDS 7 ай бұрын
YEAY (slightly disappointed my ears weren't destroyed, but whatevs)! One day I'd LOVE to see how Y'all tackle Gravity Sort, just to see how it looks.
@1ina8B
@1ina8B 7 ай бұрын
Super animation , explanation and usefull.Thanks!
@noyza2132
@noyza2132 7 ай бұрын
looks like a great way to sort cards
@memoryleaked
@memoryleaked 7 ай бұрын
Welcome back. ^.^ Watching again.
@AlbaniaShorts
@AlbaniaShorts 7 ай бұрын
Next probably : cocktail shaker sort
@airmanon7213
@airmanon7213 7 ай бұрын
Hopefully, the robot for that sort is dressed like a bartender!
@markusTegelane
@markusTegelane 7 ай бұрын
it's interesting how simple Radix LSD really is
@rusqqqq
@rusqqqq 6 ай бұрын
Actually, just intuitively sorting each value by their base, from the bottom up.
@Musicombo
@Musicombo 7 ай бұрын
Had no idea Radixsort was invented way before the first electronic computer. That's wild!!
@UndefinedFantasticCat
@UndefinedFantasticCat 6 ай бұрын
the first time I see Radix LSD sort without it sounding like I am under LSD myself
@ImXyper
@ImXyper 6 ай бұрын
the return of the king
@garbagechan
@garbagechan 4 ай бұрын
RETURN OF THE KING
@darcinit
@darcinit 6 ай бұрын
THE GOAT IS BACK
@Arnikaaa
@Arnikaaa 7 ай бұрын
I love the sorting videos!
@IronLotus15
@IronLotus15 7 ай бұрын
bucket & radix sort my beloved
@danielobambelo1411
@danielobambelo1411 6 ай бұрын
Can gnome sort be next?
@huailiulin
@huailiulin 7 ай бұрын
wake up babe new udiprod sorting algorithm video dropped
@chanyy6838
@chanyy6838 6 ай бұрын
Thanks I finally know how earripe sort works
@antoniacorrales9148
@antoniacorrales9148 7 ай бұрын
Return of the KING 🔥🔥🔥🔥
@candykatkittylichiousisthebomb
@candykatkittylichiousisthebomb 7 ай бұрын
Babe wake up new udiprod sorting algo vid dropped
@kakyoindonut3213
@kakyoindonut3213 6 ай бұрын
Mr President, udiprod just uploaded new video
@proton..
@proton.. 16 күн бұрын
i love how the pigeonhole sorting bot throws away the pallet cards when it doesn't need them anymore
@FirefoxyLeGibus
@FirefoxyLeGibus 7 ай бұрын
I wonder if it's more efficient to sort using binary or decimal Decimal is quicker but that's 10 lists to keep track of
@TheDoctorGD
@TheDoctorGD 2 ай бұрын
U RETURNED?????
@davecool42
@davecool42 7 ай бұрын
I finally understand. Thank you!
@chimeforest
@chimeforest 6 ай бұрын
Thanks for this video =] I had never looked into or understood radix sort before now ^^ Any chance we could see a radix robot compete against the others? Perhaps with colored balls with 1 or 2 bits each for red, green, and blue?
[Laser] Firing squad synchronization problem
8:47
udiprod
Рет қаралды 1 МЛН
Shell sort vs Insertion sort
6:23
udiprod
Рет қаралды 147 М.
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Visualizing 70 Sorting Algorithms
29:24
Kuvina Saydaki
Рет қаралды 242 М.
Visualization of Quantum Physics (Quantum Mechanics)
14:34
udiprod
Рет қаралды 2,7 МЛН
Heaps and Heap Sort
6:06
udiprod
Рет қаралды 568 М.
The Bubble Sort Curve
19:18
Lines That Connect
Рет қаралды 742 М.
10 FORBIDDEN Sorting Algorithms
9:41
Ardens
Рет қаралды 962 М.
Proof That Computers Can't Do Everything (The Halting Problem)
7:52
A problem so hard even Google relies on Random Chance
12:06
Breaking Taps
Рет қаралды 1,2 МЛН
How Do You KILL A Time Traveler
22:31
Sock Muppet
Рет қаралды 394 М.
In-Place LSD Radix Sort
13:11
Musicombo
Рет қаралды 140 М.
Better Mountain Generators That Aren't Perlin Noise or Erosion
18:09
Josh's Channel
Рет қаралды 443 М.