15 Sorting Algorithms "In C" but they get worse and worse

Поділитися
Вставка
  • Опубліковано 4 лют 2025

КОМЕНТАРІ • 36

  • @ScoreFollower
    @ScoreFollower  2 дні тому +58

    On average, it would take until the heat death of the universe to complete Bogo Sort with that many items, but I guess I got really lucky! 06:54

    • @cometsmith
      @cometsmith День тому +10

      on attempt 42069?

    • @otaviomanzanokavakama7481
      @otaviomanzanokavakama7481 День тому +4

      I missed this comment, haha. When I started watching I was like, no way BOGO sort took that short amount of time regardless of how fast it ran. 42069 attempts later I was proved wrong

    • @hongkonger885
      @hongkonger885 8 годин тому

      Extremely lucky indeed

    • @CanaanZhou2002
      @CanaanZhou2002 8 годин тому

      Should've used the luck to buy lottery and win enough prize money to save the entire humanity

  • @e0oh
    @e0oh 19 годин тому +60

    how tf did you get my garageband songs from when i was 12

  • @otaviomanzanokavakama7481
    @otaviomanzanokavakama7481 День тому +74

    42069 runs for BOGO sort....... Something tells me this is not legit XD

  • @hiimemily
    @hiimemily 5 годин тому +15

    In case you're wondering how many runs it would take on average to Bogo Sort this, that would be 29!, or 8.84176e30. In full: 8,841,761,993,739,701,954,543,616,000,000. If you attempted to sort the list one trillion times per second, it would on average take about 20 times the current age of the universe to get it right. Of course, getting it right on exactly attempt number 42069 is not out of the question, even if it's highly unlikely.

  • @SunroseStudios
    @SunroseStudios 13 годин тому +12

    love how you used different instruments for moves and compares!

  • @kornsuwin
    @kornsuwin 11 годин тому +8

    oh boy 70% of the video is just bogosort

    • @Chronos-667
      @Chronos-667 9 годин тому +3

      it would have been about 99.999% if it wasnt rigged

  • @Avriel_Mimiga
    @Avriel_Mimiga 12 годин тому +9

    damn, bogo sort turned into Trouble Dingle from Undertale

  • @reginaldfrank656
    @reginaldfrank656 19 годин тому +6

    In C has me dying 😆

  • @CanaanZhou2002
    @CanaanZhou2002 8 годин тому +4

    5:50 Why is it so unsettling😭

  • @kyledickersoncomposer
    @kyledickersoncomposer День тому +7

    Nice work! This is unhinged in a LeetCode sort of way.

  • @fortetwomusic
    @fortetwomusic 11 годин тому +3

    Bogo is like a weird TAS of Pong

  • @kaderen8461
    @kaderen8461 14 годин тому +3

    merge sort sounds the best imo

  • @OdinComposer
    @OdinComposer 13 годин тому +3

    Merge sort was pretty good!

  • @svcjunior5526
    @svcjunior5526 16 годин тому +7

    gnome sort sounds really... ...gnomish...

  • @dlz-q8o
    @dlz-q8o 19 годин тому +2

    cage must love bogo

  • @tr606
    @tr606 17 годин тому +1

    Bogo, always letting the side down

  • @itryen7632
    @itryen7632 3 години тому +1

    friday night funkin

  • @wither8787
    @wither8787 21 годину тому +1

    Heap Sort sounded nice

  • @river_brook
    @river_brook День тому +2

    I'm suddenly reminded of Electroplankton

  • @existenceispain_geekthesiren
    @existenceispain_geekthesiren 7 годин тому

    gnome sort is fun!

  • @nicolasgoulet4091
    @nicolasgoulet4091 10 годин тому +1

    Hey bruh! Fellow math-programmer-musician here, what software where you using to produce this? 👀

  • @cyanadofai
    @cyanadofai 40 хвилин тому

    now do it in C#

  • @sangchoo1201
    @sangchoo1201 8 годин тому +2

    quick sort is NOT O(N log N)
    big-O notation means time complexity in the worst case,
    and on its worst case(always hightest or lowest pivots are selected), it's O(N²)

  • @adiaphoros6842
    @adiaphoros6842 14 годин тому +1

    Did you code these in C?

  • @ThePolishCan
    @ThePolishCan День тому +1

    Now I can see why the Gnome and Bubble Sort are bad. Cocktail at least has visualization nice enough for me to get it instantly.

    • @TwitchSalivate
      @TwitchSalivate День тому +1

      Bubble Sort is inefficient, but I think it yields some interesting results, musically speaking... imo