In-Place LSD Radix Sort

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

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

  • @Musicombo
    @Musicombo  3 года назад +21

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

      H O W D O I D O W N L O A D I T

    • @RashaMaya123
      @RashaMaya123 8 месяцев назад

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

      @@RashaMaya123 DOES ANYONE KNOW HOW TO DOWNLOAD IT

    • @RashaMaya123
      @RashaMaya123 8 месяцев назад

      @@ERRORRubiksZeraBrand YES

  • @KeaveMind
    @KeaveMind 2 года назад +165

    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 Год назад +1

      The first video of this sort is one of my favorite, the absolute power of the echo at the end

    • @Tarou9000
      @Tarou9000 10 месяцев назад +5

      the scrolling of the screen is an effect of In-place LSD Radix Sort, not Radix Sort

    • @nhungduong3236
      @nhungduong3236 8 месяцев назад

      Same but in place or out of place as I want

    • @bitonic589
      @bitonic589 3 месяца назад

      ​@@nhungduong3236You like inefficient sorting algorithms which literally defeat the whole purpose of a sort?

  • @45_689
    @45_689 3 года назад +313

    never thought it'd be so satisfying seeing the swaps counter finally hit 10 million at some point, lol

    • @shanshansan
      @shanshansan 3 года назад +20

      9:34 for the 10 million swaps

    • @adrianodemetrio5607
      @adrianodemetrio5607 2 года назад +18

      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 года назад +3

      i thought i was the only one

    • @phantomtroopyt
      @phantomtroopyt Год назад

      So satisfying 😭

    • @bobczech7774
      @bobczech7774 Год назад +4

      Imagine it says 9,999,999 😂😢

  • @azurbtkl3901
    @azurbtkl3901 3 года назад +183

    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 года назад +14

      Me when searching a song I don’t remember the name of:

    • @KatzRool
      @KatzRool 2 года назад +4

      lmao

    • @edwardclark6731
      @edwardclark6731 2 года назад

      I like the OUUUUUUUUUUUUUUUUUUEEEEEEOOOOOOOOOEOEOEOEOEOEOEOEOEOEOEOEOEO at the end and the DUDUDUDUDUUUDUDUDUDUDUDUDUDUDUDUDUDDUDUDUDUDDUDUDUDUDUDDUDUDUUDD at the beggning

    • @DeveloperJake
      @DeveloperJake 2 года назад +6

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

      I also like radix sort but merge sorte is best for me

  • @jaypaint4855
    @jaypaint4855 2 года назад +90

    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 года назад +10

      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 года назад +8

      And yes its absolutely hilarious it's named LSD sort
      -it fits-

    • @dna_rosepetal_wcue
      @dna_rosepetal_wcue 8 месяцев назад

      ok, *nerd*. i wonder who this **nerd** is.@@edwardclark6731

  • @theplayer12312
    @theplayer12312 Год назад +35

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

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

      @@bitonic589 In what real world application would you put LSD Radix through a 4 digit array with wildly different values?

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

      ​​@@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.

    • @beaclaster
      @beaclaster Месяц назад

      ​@@bitonic589low amount of numbers is an ass example

  • @417Owsy
    @417Owsy Год назад +73

    Radix Base 10 sort be like:
    1. Check entire thing
    2. blblblblblblblbl
    3. done

    • @nhungduong3236
      @nhungduong3236 8 месяцев назад +3

      The orders you said are correct! Congratulations! Here's a billion dollars!

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

      1. Scan
      2. EAUOHEBEAEBOEHAOEHO
      3. blblblblblblblblblblblblblblblbl
      4. errrrrrrrooooooiiiiiii

  • @kydatyvegrybatokeanvisoko2420
    @kydatyvegrybatokeanvisoko2420 2 года назад +38

    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

  • @WireframePizzy
    @WireframePizzy 3 года назад +89

    0:19 listen closely and you can hear the THX intro

  • @TheOne_6
    @TheOne_6 Год назад +8

    your average radix in-place LSD base 10 consists of:
    -efficiency
    -sounding like an alien in a microwave
    -broken music disc

  • @letter_o_hyphen_letter_o
    @letter_o_hyphen_letter_o 2 года назад +7

    love that running radix start to finish on "radix final pass" creates a sort of shepard tone on the second(?) pass

  • @DeveloperJake
    @DeveloperJake 2 года назад +13

    I like when it starts the Shepard tone for a minute

  • @jonnelk.pabico5402
    @jonnelk.pabico5402 10 месяцев назад +5

    1:46 えええええーぅううううううあおあううううう!!!!!

  • @Plaston_
    @Plaston_ 2 года назад +12

    Theses frequances sweeps are quite good at stressing speakers, it help them softing their suspensions and test their bandwidth.

  • @HamStar_
    @HamStar_ 3 года назад +24

    the fan favorite

  • @Somaiscariot
    @Somaiscariot 3 года назад +39

    Who else really misses dubstep? 💕

  • @distendedmist5840
    @distendedmist5840 Год назад +5

    I love it it is like a cheque printer chucking out stuff

  • @nameisChannelID
    @nameisChannelID 3 года назад +21

    This is what everyone comes for

  • @frzferdinand72
    @frzferdinand72 2 года назад +13

    1:45 It sounds like music from Portal

  • @majman446
    @majman446 11 месяцев назад +3

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

    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.

  • @DonnaDinaMusic
    @DonnaDinaMusic 2 года назад +7

    у меня в глазах рябит от этого но я не могу оторваться

  • @jsmcfadyen
    @jsmcfadyen 3 года назад +22

    I thought in-place meant no writes to auxiliary arrays

    • @Musicombo
      @Musicombo  3 года назад +33

      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 года назад +16

      Musicombo I like your funny words magic man

    • @Musicombo
      @Musicombo  3 года назад +14

      Lol, thank you? 😅

    • @smaybius
      @smaybius 2 года назад +6

      The aux space is just for the buckets and determining them. The items in the array are never moved out of place

    • @RashaMaya123
      @RashaMaya123 8 месяцев назад

      ​@@Musicombo Do Over 300 Sorting Algorithms In Under An Hour
      Reversed Inputs

  • @ishu4227
    @ishu4227 2 года назад +6

    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 2 года назад +7

      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

  • @twostepverification590
    @twostepverification590 Год назад +1

    I can't believe the whole sorting board moved in a single frame

  • @ProTheRobloxer
    @ProTheRobloxer Год назад +2

    Me: What’s 1+1?
    My brain: 0:06
    My brain: “3”

  • @demirbey8068
    @demirbey8068 3 месяца назад

    Oh its the "Why so quiet?" *3 seconds later* "Oh, thats why" guy.

  • @BryndanMeyerholtTheRealDeal
    @BryndanMeyerholtTheRealDeal 2 года назад +7

    This, but with a million numbers. I wonder how fast it will be?

    • @mewity
      @mewity 9 месяцев назад +1

      computer crash moment

    • @costa-w3k
      @costa-w3k 8 месяцев назад

      I wonder how SLOW* would it be
      We are talking about Radix sort, man

    • @TechSY730
      @TechSY730 6 месяцев назад

      ​@@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 5 месяцев назад

      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".

  • @neurotoxic1830
    @neurotoxic1830 2 года назад +2

    Oh my god it sometimes sounds like peeling off tape from the roll but continuous

  • @陳娟娟-t6f
    @陳娟娟-t6f 5 месяцев назад +1

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

      In-Place LSD Radixsort (Base-10): Reverse Sort

  • @Ceafto2007
    @Ceafto2007 3 года назад +15

    Radix sort base 2? Or base 1?

    • @Ceafto2007
      @Ceafto2007 3 года назад +3

      @Nehemiah Britt no, I mean, how would base one and base two work?

    • @signisot5264
      @signisot5264 3 года назад +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 года назад +13

      base 1: it moves everything into the same bucket each time, but in a different order
      equivalent to bogosort

    • @signisot5264
      @signisot5264 3 года назад +2

      @@HamStar_ lol bogo

    • @Ceafto2007
      @Ceafto2007 3 года назад

      Could be an interesting video

  • @My1xT
    @My1xT Год назад

    yeah this looks so trippy this algo HAS TO have taken some drugs

  • @rosanafalcao4038
    @rosanafalcao4038 2 года назад +1

    5:28 First one to sound different
    6:01 First one to sound *almost completely* different

  • @maxvangulik1988
    @maxvangulik1988 2 года назад +19

    Imagine if someone made bad apple in this software

    • @ryoukaip
      @ryoukaip 2 года назад +7

      lmao its quita hard tho
      edit: *quite

    • @mewity
      @mewity 9 месяцев назад +1

      badapplesort

    • @nhungduong3236
      @nhungduong3236 8 месяцев назад

      It's logically impossible

    • @maxvangulik1988
      @maxvangulik1988 8 месяцев назад

      @@nhungduong3236 could approximate it

  • @Terpster77
    @Terpster77 3 года назад +14

    RADIX

  • @LSCrazyCabCo
    @LSCrazyCabCo 2 года назад +4

    but is there such thing as an unsorting algorithm?

  • @WireframePizzy
    @WireframePizzy 3 года назад +10

    0:31 what was the point in that

    • @CSDragon
      @CSDragon 3 года назад +6

      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.

  • @hydrate6913
    @hydrate6913 3 года назад +4

    i change my mind.

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

    I think 00:07:33 is kinda Creeepy
    (For Me)
    Broken Machine!
    404
    040
    440
    004
    444
    000
    044
    400

  • @Anopeng
    @Anopeng 2 года назад +1

    After these videos I realized that I have sortophobia...

  • @hollyhello8352
    @hollyhello8352 3 года назад +8

    no idea how it works, but its so cool!!!

    • @smaybius
      @smaybius 3 года назад +4

      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

  • @uncreativename957
    @uncreativename957 6 месяцев назад

    The sound when my computer is not computering

  • @serg_sel7526
    @serg_sel7526 Год назад

    Basically it stabilly sorts every number by first digit, then second, then third, then fourth and etc... Sadly, it can sort only digits...

  • @edwardclark6731
    @edwardclark6731 2 года назад +2

    use like base two or base 5894

  • @itryen7632
    @itryen7632 3 года назад +3

    WHERE'S THE VOLUME >:(

  • @LitttleFarmLife
    @LitttleFarmLife 3 месяца назад +1

    Everything is same, Except 00:05:30!

  • @Button_Pushing
    @Button_Pushing 7 месяцев назад +1

    How does this algorithm work?

    • @UmbralKnight1344
      @UmbralKnight1344 6 месяцев назад +1

      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.

  • @maydeni123
    @maydeni123 Месяц назад

    Alimento Gato Adulto Don Kat

  • @minhluat-6789
    @minhluat-6789 7 месяцев назад +1

    Xin Chúc Mừng Bạn Nhận Được 10.000.000 Người Đăng Ký

  • @MissyStarofficialchannel
    @MissyStarofficialchannel 10 месяцев назад +2

    00:05:30❤️‍🔥❤️‍🔥❤️‍🔥

  • @Arufi000
    @Arufi000 3 месяца назад

    this is what lsd feels like

  • @S1LLY_PHONE_FR1ENDS_L0V3R
    @S1LLY_PHONE_FR1ENDS_L0V3R Месяц назад

    7:20 my brain at school:

  • @maydeni123
    @maydeni123 Месяц назад

    32?

  • @maydeni123
    @maydeni123 Месяц назад

    34?

  • @hiatus0017
    @hiatus0017 2 года назад

    what app is this?

  • @52markin
    @52markin Год назад +1

    Seems like the thx intro

  • @badboycorolla86
    @badboycorolla86 Год назад

    cool video, i always want that app on my computer

  • @itryen7632
    @itryen7632 3 года назад +3

    This is looking like one of those Japanese music videos now

  • @daisyreeabalde7888
    @daisyreeabalde7888 7 месяцев назад

    25 Ways to In-place LSD Radixsort Base-10

  • @keanjuguetaphkinemastertv4885
    @keanjuguetaphkinemastertv4885 2 года назад +1

    All Musicombo Sorting Videos

  • @sbuydi_sweeddat
    @sbuydi_sweeddat 3 года назад +1

    Start Redix from Final Redix then stop at Final Redix and repeat

  • @maydeni123
    @maydeni123 Месяц назад

    30?

  • @idiotgame1026
    @idiotgame1026 2 года назад +6

    9:34

  • @Questiala124
    @Questiala124 Год назад

    10:00 10 million at 10 minutes for the 10^0th time!

  • @itryen7632
    @itryen7632 3 года назад +6

    FUCK YEAH
    SORT IT ROOOIGHHT

  • @TheDudeThatDoesNothing
    @TheDudeThatDoesNothing 6 месяцев назад

    0:51 THX Intro

  • @JevinFansystemNewvikianGuy
    @JevinFansystemNewvikianGuy Год назад

    LSB Radixsort in Embrassed No waveinvert mono only

  • @andysetiawanart7669
    @andysetiawanart7669 2 года назад +5

    Don't base 10, should be base 16 in radix LSD Sort in place

  • @xirex4705
    @xirex4705 3 года назад +1

    but what is update.

  • @andysetiawanart7669
    @andysetiawanart7669 2 года назад +3

    Seharusnya base 16 jangan 10, kalau pilih 10 kurang sempurna lihatnya

  • @aeezem
    @aeezem 2 года назад +1

    watch this on lsd

  • @S1LLY_PHONE_FR1ENDS_L0V3R
    @S1LLY_PHONE_FR1ENDS_L0V3R 2 часа назад

    5:41 e: 6:02 wiwiwiwiwiwiwiwiwiwiwiwi

  • @Indrakrn
    @Indrakrn 3 года назад

    Sounds like lagging ps2 games

  • @Buckybadgerwisco
    @Buckybadgerwisco 2 года назад

    this is just base 10

  • @Caterblock
    @Caterblock 3 года назад +4

    Another one

  • @ert5419
    @ert5419 2 года назад +1

    WHAT

  • @maydeni123
    @maydeni123 Месяц назад

    1,2 kg

  • @maydeni123
    @maydeni123 Месяц назад

    Ghuo

  • @maydeni123
    @maydeni123 Месяц назад

    2,1 kg

  • @tpb2025
    @tpb2025 2 года назад

    krnl sort 4.0

  • @maydeni123
    @maydeni123 Месяц назад

    3

  • @maydeni123
    @maydeni123 Месяц назад

    1

  • @maydeni123
    @maydeni123 Месяц назад

    2

  • @leyasep5919
    @leyasep5919 2 года назад

    Funny but inefficient 😕

  • @maydeni123
    @maydeni123 Месяц назад

    Mi

  • @ethanramcel2749
    @ethanramcel2749 3 года назад

    Fast

  • @ethanramcel2749
    @ethanramcel2749 3 года назад +2

    Slow

  • @lephihung10
    @lephihung10 2 года назад

    /tp 65.50 68.56 65.50

  • @liondyi
    @liondyi 5 месяцев назад

    it’s called LSD for a reason