LSD Radix Sort

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 เม.ย. 2021
  • 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
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 45

  • @Musicombo
    @Musicombo  3 ปีที่แล้ว +7

    Visit our community Discord here: discord.com/invite/2xGkKC2
    Check out the NEW home for ArrayV here: github.com/gaming32/ArrayV-v4.0

  • @nunthenihtara608
    @nunthenihtara608 2 ปีที่แล้ว +46

    9:29 magic moment

  • @nickcrow1003
    @nickcrow1003 ปีที่แล้ว +18

    always takes 12288 writes to both arrays as radix sort has a fixed run time for a given data set of O(N*B) where B is the base of the number such as 4 base in this example and N is the amount of data if I understand it correctly.

  • @XaxtonRevolution2
    @XaxtonRevolution2 2 ปีที่แล้ว +56

    I’ve noticed that the last two steps always look the same.

    • @hydrate6913
      @hydrate6913 2 ปีที่แล้ว +8

      except bell curve array, perlin noise curve and perlin nise

    • @edwardclark6731
      @edwardclark6731 2 ปีที่แล้ว +2

      @@hydrate6913 they do the same operation though

    • @Gamesmarts194
      @Gamesmarts194 ปีที่แล้ว +10

      That’s how LSD Radix Sort works: Everything that has the same number in a specific placement (like 10s, 100s, etc.) gets put in the same spot and repeat for the next digit placement up until the whole thing is sorted. By the time it gets to the last digit placements those pretty much the rest of the placements have already been sorted.

    • @tigrankhachatryan6119
      @tigrankhachatryan6119 ปีที่แล้ว

      The last step also sounds like a microwave :P

    • @rodrigoqteixeira
      @rodrigoqteixeira 7 วันที่ผ่านมา

      Who will tell him how radix sort works? Because it wont be me.

  • @nunthenihtara608
    @nunthenihtara608 3 ปีที่แล้ว +38

    5:28 ? 👁️👄👁️

    • @official-obama
      @official-obama ปีที่แล้ว +3

      that's not specifically lsd sort base 4, and also i'm pretty sure lsd sort would sort an already sorted array

    • @chickenbobbobba
      @chickenbobbobba 2 หลายเดือนก่อน

      if you wanted to have it sort this correctly, then youd have to add additional checks to put it in the correct base, partitions, and what number in each number it has to compare. this could potentially take more time on average than just sorting it regardless because theres so much to figure out

  • @tigrankhachatryan6119
    @tigrankhachatryan6119 ปีที่แล้ว +4

    10:53 sounds like "WOOOOW!"

  • @asibo138
    @asibo138 2 ปีที่แล้ว +11

    10:55

  • @Caterblock
    @Caterblock 3 ปีที่แล้ว +4

    Cool

  • @elijahkalebabalde1527
    @elijahkalebabalde1527 หลายเดือนก่อน

    Soundfront:LSD Acid

  • @truongquangduylop33
    @truongquangduylop33 ปีที่แล้ว

    Do base-2

  • @RedstoneNguyen
    @RedstoneNguyen 3 ปีที่แล้ว +29

    Bro I want to ask why don't we just use the base as n?

    • @Musicombo
      @Musicombo  3 ปีที่แล้ว +41

      You could, but then that basically becomes counting sort!

    • @RedstoneNguyen
      @RedstoneNguyen 3 ปีที่แล้ว +7

      @@Musicombo Thanks for the information!

    • @Musicombo
      @Musicombo  3 ปีที่แล้ว +24

      @@RedstoneNguyen Oh, I should qualify this: Radixsort base n is basically counting sort *assuming a linear distribution*.

    • @RedstoneNguyen
      @RedstoneNguyen 3 ปีที่แล้ว +4

      @@Musicombo I don't quite understand, but that could be nice to be in the description :)

    • @arielshadow7667
      @arielshadow7667 3 ปีที่แล้ว +7

      @@RedstoneNguyen generally radix LSD sort is kinda modified counting sort

  • @thevioletwild
    @thevioletwild ปีที่แล้ว +3

    Why does it always take 22 seconds?

    • @shirakawamaseru
      @shirakawamaseru ปีที่แล้ว +7

      Because the runtime is defined by the size of the array. It's always the same size so it always takes the same time.
      That's it's big advantage. The larger the array, the faster it is compared to other algorithms.
      If you have insanely large arrays, it takes a fraction of the time of any other sorting algorithm
      The smaller the array, the more is the advantage eaten away by its overhead. So fastest speed but largest overhead, so only worth using if the array is large enough

    • @thevioletwild
      @thevioletwild ปีที่แล้ว

      @@shirakawamaseru hmm I guess that makes sense

    • @mage3690
      @mage3690 ปีที่แล้ว +4

      I'm going to give a different answer: it always takes the same amount of time, because there are no comparisons. No comparisons means no decisions can be made about how things should be most efficiently done. Therefore, it can only be done one way: the slow way, the whole way, every time.

  • @rodrigoqteixeira
    @rodrigoqteixeira 7 วันที่ผ่านมา

    Why is bro testing so many shapes? Radix sort is guaranted to perform the same (even if it is sorted lol)

  • @LVETOT
    @LVETOT 3 ปีที่แล้ว +2

    Sort cooler!

  • @MoeXBlacky
    @MoeXBlacky 2 ปีที่แล้ว +13

    I can’t see those It burned my eyes.
    3:14

    • @MoeXBlacky
      @MoeXBlacky 2 ปีที่แล้ว

      And super burned my eyes too.
      3:43

    • @MoeXBlacky
      @MoeXBlacky 2 ปีที่แล้ว +1

      OH MY GOD
      IT BURNS MY EYES!
      4:14

    • @MoeXBlacky
      @MoeXBlacky 2 ปีที่แล้ว

      4:43
      *dies*

    • @JakeKartaBAWER127-October
      @JakeKartaBAWER127-October 10 หลายเดือนก่อน +1

      @@MoeXBlackybruh

    • @SuperBee3
      @SuperBee3 6 หลายเดือนก่อน

      😂😂😂​@@JakeKartaBAWER127-October

  • @majorse203
    @majorse203 4 หลายเดือนก่อน +1

    why did you claim a sorting algorithm video tho?

  • @NishimuraKensei
    @NishimuraKensei 2 ปีที่แล้ว +1

    I’m Late Again In Live Chat,

  • @a-cd2lw
    @a-cd2lw 12 วันที่ผ่านมา

    A