Visualization of Radix sort

Поделиться
HTML-код
  • Опубликовано: 9 ноя 2024

Комментарии • 295

  • @ChaoticKatOwO
    @ChaoticKatOwO 4 месяца назад +680

    The fact that they've been using the same graphics for these videos for 15 YEARS is impressive

    • @mirabilis
      @mirabilis 4 месяца назад +1

      Or lazy.

    • @ThoincTheNugget
      @ThoincTheNugget 4 месяца назад +90

      If it ain’t broke don’t fix it

    • @celeryman14
      @celeryman14 4 месяца назад +7

      ​@@ThoincTheNugget Exactly

    • @i_teleported_bread7404
      @i_teleported_bread7404 4 месяца назад

      I'm not really an expert, but when would a sorting algorithm be used in graphics?

    • @ChaoticKatOwO
      @ChaoticKatOwO 4 месяца назад +1

      @@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??

  • @HiroTeaShi
    @HiroTeaShi 4 месяца назад +183

    This is the most accessible explanation of radix sort I've seen. The sound of the tiles falling is also very satisfying

  • @jumpingSpiders
    @jumpingSpiders 4 месяца назад +296

    I don’t mind watching the video again for the visuals only

  • @mikumikuareka
    @mikumikuareka 4 месяца назад +461

    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_ 4 месяца назад +85

      Welcome to computer science!

    • @jaydentt
      @jaydentt 4 месяца назад +87

      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 4 месяца назад +31

      you are still a genius by anybody's standard

    • @ishu4227
      @ishu4227 4 месяца назад +16

      i've gone through thinking i've invented a new sort TOO MANY TIMES.. i feel you bro

    • @ilikecreeper331
      @ilikecreeper331 4 месяца назад +8

      me too! for me it was bubble sort, i called it compare sort because it compared two numbers. I thought I was a genius

  • @onelazynoob15
    @onelazynoob15 4 месяца назад +73

    non-comparison based sorting algs stay winning, this has been one of the most satisfying visualizations I've seen

    • @adiaphoros6842
      @adiaphoros6842 4 месяца назад +1

      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 4 месяца назад +8

      ​@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 4 месяца назад +1

      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 2 месяца назад

      @@feritperliare2890 This assumes familiarity with sorting algorithms terminology. You jump to pedantry, but this could just be lack of knowledge

  • @samcnut
    @samcnut 4 месяца назад +890

    Babe wake up, new sorting algorithm just dropped

    • @thomaskaldahl196
      @thomaskaldahl196 4 месяца назад +2

      Beat me to it! Was going to make this exact comment

    • @RinInABin
      @RinInABin 4 месяца назад +27

      The algorithm itself is actually older than paper drinking straws

    • @Rando2101
      @Rando2101 4 месяца назад +5

      ​@@RinInABin who invented paper straws anyways

    • @CyberCat3O
      @CyberCat3O 4 месяца назад +1

      This exact sentence ran through my mind when I clicked on this video

    • @algodoomarbleracing
      @algodoomarbleracing 4 месяца назад

      Yay

  • @konignickerchen7265
    @konignickerchen7265 4 месяца назад +19

    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.

  • @nicreven
    @nicreven 4 месяца назад +132

    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 4 месяца назад +1

      same lol

    • @joshuahudson2170
      @joshuahudson2170 4 месяца назад +10

      Fun fact. It's linear. The N log N barrier has been broken.

    • @nicreven
      @nicreven 4 месяца назад +3

      @@joshuahudson2170 .... pardon??

    • @gmdrandom6287
      @gmdrandom6287 4 месяца назад

      @@joshuahudson2170isn't the complexity based on the length of the longest number?

    • @joshuahudson2170
      @joshuahudson2170 4 месяца назад +1

      @@gmdrandom6287 Depends on use case. Sometimes you really do have to sort more than 4 billion 32 bit integers.

  • @lydiat.5214
    @lydiat.5214 2 месяца назад +3

    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)

  • @csongorzih5094
    @csongorzih5094 4 месяца назад +39

    Ahhh this is even more satisfying than the robots sorting. With the high contrast and the motion blur... it turned out really awesome

  • @protondium_8927
    @protondium_8927 4 месяца назад +166

    Time to visualize radix sort for the first time!

    • @Limeappl890
      @Limeappl890 4 месяца назад +1

      And pigeonhole sort

  • @catmacopter8545
    @catmacopter8545 4 месяца назад +51

    Your audio and visuals are top-notch as always 😊

  • @rodrigoqteixeira
    @rodrigoqteixeira 4 месяца назад +177

    0:45 ROBOT POLLUTING 😲🔥

    • @ishu4227
      @ishu4227 4 месяца назад +6

      REAL????

    • @LuizDahoraavida
      @LuizDahoraavida 4 месяца назад +19

      It is garbage collecting the lookup table

    • @rodrigoqteixeira
      @rodrigoqteixeira 4 месяца назад +8

      @@LuizDahoraavida oh, got it, fancy interpreted languages with garbage collecting.

    • @tinthatisfullofbeans
      @tinthatisfullofbeans 4 месяца назад +2

      LITTERING HARMS THE EARTH 😡😡😡😡

    • @rodrigoqteixeira
      @rodrigoqteixeira 4 месяца назад +2

      @@tinthatisfullofbeans 😡😡😡

  • @intangiblematter_misc
    @intangiblematter_misc 4 месяца назад +22

    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!

  • @ihavetwofaces
    @ihavetwofaces 4 месяца назад +3

    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.

  • @1e1001
    @1e1001 4 месяца назад +13

    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 4 месяца назад +1

      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.

  • @burnstjamp
    @burnstjamp 4 месяца назад +6

    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 4 месяца назад +8

    It's always a nice thing to see a new video on one of my favorite channels on CS.

  • @TrianguloY
    @TrianguloY 4 месяца назад +65

    Typo fixed: pervious -> previous (first seconds of the video)

  • @Zilberlex
    @Zilberlex 4 месяца назад +6

    Top notch video. You are making the world a better place by making these videos.

  • @somebodyelse9130
    @somebodyelse9130 4 месяца назад +2

    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.

  • @shawn576
    @shawn576 29 дней назад

    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.

  • @UriahStuff
    @UriahStuff 2 месяца назад +1

    Thank you so much! I had trouble understanding how radix sort works, but your demonstration finally made me understand.

  • @NguyenMinhPhu664
    @NguyenMinhPhu664 4 месяца назад +2

    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!

  • @AlexAnder-yj1qs
    @AlexAnder-yj1qs Месяц назад +1

    YEAHHHH so glad they’re still doing these!!! 🎉🎉🎉 We need more!!!

  • @AGreySky
    @AGreySky 4 месяца назад +10

    punch card sorters work this way. it has twelve pockets, for the twelve hole positions per column, plus a pocket for errors. very cool!

  • @nubnoobbo
    @nubnoobbo 14 дней назад +1

    Glad you're still doing these videos

  • @jeremychicken3339
    @jeremychicken3339 4 месяца назад +4

    You finally did it! I was asking for this! Now I wanna see Gnome Sort and how it is different to Insertion Sort.

  • @binathiessen4920
    @binathiessen4920 4 месяца назад +2

    The block sounds are very satisfying.

  • @askplays
    @askplays 4 месяца назад +24

    We have never been so back sorting bros

  • @lunienul
    @lunienul 4 месяца назад +5

    i love that u guys are still going after all these years

  • @theoreticalphysics3644
    @theoreticalphysics3644 4 месяца назад +1

    Ho boy this gives me some wild college nostalgia and whiplash seeing a new upload like this.

  • @engineerasifali
    @engineerasifali 4 месяца назад +1

    Watching your videos is always a treat (regardless of one knows the concept or not!) 🙂
    Keep posting and keep educating.

  • @clairecelestin8437
    @clairecelestin8437 4 месяца назад +1

    I love Radix. One of my favorite sorting algorithms, both for its efficiency and for its beauty

    • @dougaltolan3017
      @dougaltolan3017 4 месяца назад

      Efficiency???
      Restacking the sort piles is horrendous.
      Requires double the storage of the original list.

  • @88michaelandersen
    @88michaelandersen 4 месяца назад +3

    This is one of the best channels on RUclips.

  • @JohnSmith-of2gu
    @JohnSmith-of2gu 4 месяца назад +2

    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.

  • @theprofessor107
    @theprofessor107 4 месяца назад +1

    Wow. Best sorting video I have ever come across! Kudos!

  • @kosolomon123
    @kosolomon123 4 месяца назад +2

    i love this channel, if my children wants to learn algorithms i will bring them here.

  • @AbhayGupta-oz1ix
    @AbhayGupta-oz1ix 3 месяца назад +1

    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.

  • @ThatGuywithNoFacecam
    @ThatGuywithNoFacecam 2 месяца назад +1

    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.

  • @ManiTheObbyist
    @ManiTheObbyist 4 месяца назад +4

    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!

  • @cookiedoughflow6957
    @cookiedoughflow6957 4 месяца назад +1

    This is the one I was having the hardest time understanding so I’m excited for this video!

  • @Tyler-ze4tg
    @Tyler-ze4tg 4 месяца назад +4

    I watched some of your super old videos a few weeks ago, didn’t know y’all still upload :o

  • @windestruct
    @windestruct 2 месяца назад +1

    I always thought it had to do something with the LSD drug. Thanks for explaining this sort in more detail.

  • @kenhaley4
    @kenhaley4 4 месяца назад

    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.

  • @ok-alarm
    @ok-alarm 4 месяца назад +2

    THIS IS NICE! I'm glad i found this channel

  • @average792
    @average792 4 месяца назад +2

    Woah, finally. Been waiting for 2 years

  • @henryzhang3961
    @henryzhang3961 4 месяца назад +1

    most satisfying animation and sound design

  • @weylinwest9505
    @weylinwest9505 4 месяца назад +6

    Glad you're back!

  • @LuizDahoraavida
    @LuizDahoraavida 4 месяца назад +1

    This channel is such a gem

  • @not_estains
    @not_estains 4 месяца назад +1

    i love radix (LSD) sort so much im so glad they did a video on it

  • @problemsfan4132
    @problemsfan4132 4 месяца назад +2

    I missed these videos! glad to see you upload again :D

  • @DennisTheZZZ
    @DennisTheZZZ 4 месяца назад +2

    Thanks to the new number sorting machine, we‘re one step closer to a vizualization of Gravity Sort!

  • @Wonky2
    @Wonky2 4 месяца назад +1

    Oh wow, it's such a simple and elegant algorithm!

  • @elusivelord
    @elusivelord 4 месяца назад +1

    I remember asking for pigeonhole sort, and now we have it!

  • @ametrinefirebird7125
    @ametrinefirebird7125 4 месяца назад +1

    Awesome having all the answers to my questions about radix all in one video!!

  • @StickStep
    @StickStep 4 месяца назад +1

    The world has cleared up so much that a new video about sorting has appeared!

  • @yoshidude64595
    @yoshidude64595 4 месяца назад +2

    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.

  • @cariyaputta
    @cariyaputta 4 месяца назад +1

    Amazing visualization, as always.

  • @nanchoparty
    @nanchoparty 4 месяца назад +1

    YES! YES! YES! YES! IT'S FINALLY TIME FOR RADIX!!!!
    THANK YOU UDIPROD! 🙏

  • @ZekeRaiden
    @ZekeRaiden 4 месяца назад +1

    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.

  • @Musicombo
    @Musicombo 4 месяца назад +1

    Had no idea Radixsort was invented way before the first electronic computer.
    That's wild!!

  • @Wulfhartus
    @Wulfhartus 4 месяца назад +1

    The pedagogy of this video is huge

  • @SpectroliteDS
    @SpectroliteDS 4 месяца назад +1

    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.

  • @noyza2132
    @noyza2132 4 месяца назад +1

    looks like a great way to sort cards

  • @20LeeBrian1
    @20LeeBrian1 4 месяца назад +4

    I like how a robot casually discards a legend card

  • @Dadax9398
    @Dadax9398 4 месяца назад +1

    Very good explanation ! The animations especially really helped

  • @digitalizedmind6784
    @digitalizedmind6784 4 месяца назад +1

    Hell yeah, love these sorting algorithm videos

  • @Tasarran
    @Tasarran 4 месяца назад +2

    Least Significant Digit Radix Sort is my favorite sort!

  • @soup9242
    @soup9242 4 месяца назад +1

    Finally, I can understand the sorting algorithm that looks like black magic when applied to a 3D visualiser.

  • @lexo632
    @lexo632 4 месяца назад +3

    A NEW SORTING ALGORITHM HAS ENTERED THE FRAY.

  • @hexzyle
    @hexzyle 4 месяца назад +14

    RETURN OF THE UDIKING

  • @mrmurpleqwerty4838
    @mrmurpleqwerty4838 4 месяца назад +1

    my favorite channel is back! yay!

  • @1ina8B
    @1ina8B 4 месяца назад +1

    Super animation , explanation and usefull.Thanks!

  • @huhneat1076
    @huhneat1076 4 месяца назад +13

    It's not a real sort if the little robot guys didn't do it

  • @speedsystem4582
    @speedsystem4582 4 месяца назад +1

    Oh, boy... This was all it took to get me subscribed.

  • @darcinit
    @darcinit 4 месяца назад +1

    THE GOAT IS BACK

  • @famailiaanima
    @famailiaanima 4 месяца назад +1

    Incredible! Thanks!

  • @AlbaniaShorts
    @AlbaniaShorts 4 месяца назад +5

    Next probably : cocktail shaker sort

    • @airmanon7213
      @airmanon7213 4 месяца назад +4

      Hopefully, the robot for that sort is dressed like a bartender!

  • @ImXyper
    @ImXyper 4 месяца назад +1

    the return of the king

  • @garbagechan
    @garbagechan 2 месяца назад +2

    RETURN OF THE KING

  • @antoniacorrales9148
    @antoniacorrales9148 4 месяца назад +1

    Return of the KING 🔥🔥🔥🔥

  • @chimeforest
    @chimeforest 4 месяца назад +1

    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?

  • @NavjotSingh-dy4iu
    @NavjotSingh-dy4iu 2 месяца назад +1

    Thank you so much

  • @davecool42
    @davecool42 4 месяца назад +1

    I finally understand. Thank you!

  • @markusTegelane
    @markusTegelane 4 месяца назад +2

    it's interesting how simple Radix LSD really is

    • @rusqqqq
      @rusqqqq 4 месяца назад

      Actually, just intuitively sorting each value by their base, from the bottom up.

  • @chanyy6838
    @chanyy6838 4 месяца назад

    Thanks I finally know how earripe sort works

  • @IronLotus15
    @IronLotus15 4 месяца назад +1

    bucket & radix sort my beloved

  • @memoryleaked
    @memoryleaked 4 месяца назад +1

    Welcome back. ^.^ Watching again.

  • @Arnikaaa
    @Arnikaaa 4 месяца назад +1

    I love the sorting videos!

  • @WindStreak_
    @WindStreak_ 4 месяца назад +1

    I'm 2 weeks late but a new sorting video lets go!

  • @AndrewChumKaser
    @AndrewChumKaser 4 месяца назад +1

    Radix is linear unlike most other sorting algorithms. This means that as the number of elements grows, radix gets better and better. For small numbers of elements it's extremely inefficient because of its massive overhead, so it gets beaten easily.

  • @AlexandraSkrzypinski
    @AlexandraSkrzypinski 6 часов назад

    Thanks for the breakdown! A bit off-topic, but I wanted to ask: I have a SafePal wallet with USDT, and I have the seed phrase. (alarm fetch churn bridge exercise tape speak race clerk couch crater letter). Could you explain how to move them to Binance?

  • @linhviet12505
    @linhviet12505 4 месяца назад +1

    Absolute everything !!!!!!!!

  • @ramr7051
    @ramr7051 4 месяца назад +1

    Amazing channel

  • @paegr
    @paegr 4 месяца назад +1

    man I sure do love *_[RADIX LSD BASE 10 NOISE]_*

  • @henke37
    @henke37 4 месяца назад +1

    Next up: a video about average vs worst case complexity. With adversarial input.

  • @GeoRedSky
    @GeoRedSky 4 месяца назад +1

    How do you make these videos? They're amazing!

  • @huailiulin
    @huailiulin 4 месяца назад +1

    wake up babe
    new udiprod sorting algorithm video dropped

  • @Pixiltation
    @Pixiltation 4 месяца назад +1

    no way new upload