*SEIZURE WARNING* Pushing Sorts to their Limits

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

Комментарии • 10 тыс.

  • @SawtoothWaves
    @SawtoothWaves 3 года назад +34538

    i don't understand what's going on and at this point I'm too afraid to ask

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

      Animations of sorting algorithms!

    • @paulomartins1008
      @paulomartins1008 3 года назад +2766

      You write instructions computer follows instructions at the end numbers are sorted.

    • @rickybishop81
      @rickybishop81 3 года назад +2092

      @@paulomartins1008 you sadly still didn’t dumb it down enough for me

    • @timeflex727
      @timeflex727 3 года назад +2677

      @@rickybishop81 u write. computer do

    • @gemhunter498
      @gemhunter498 3 года назад +1015

      My guess as to what it's doing here: Those lines represent numbers. Each one is a slightly different height. The algorithm sorts these lines in different, unique ways. Each line also has a slightly different tone assigned to it, which plays when it is compared, swapped, or reversed.

  • @ncot_tech
    @ncot_tech 3 года назад +2604

    24:43 - Step 1 - Get shuffled data, Step 2 - ???, Step 3 - Sorted.

    • @2-dcat28
      @2-dcat28 3 года назад +7

      Lol

    • @thatoneguy9582
      @thatoneguy9582 3 года назад +631

      21:12
      1. Read data
      2. Do the fucking thing

    • @AlexKuz
      @AlexKuz 3 года назад +37

      Step 2 is sorting you silly)

    • @l1ttel_y699
      @l1ttel_y699 3 года назад +46

      See that counter of Writes to Auxiliary Array? This used some external data structure that wasn't shown on screen

    • @purplepotatoes9255
      @purplepotatoes9255 3 года назад +71

      13:23

  • @OliverMoy
    @OliverMoy 3 года назад +14763

    I came to the video like "huh?'
    and left the video like "oh."

  • @ManosSef
    @ManosSef Год назад +206

    At this point I'm convinced that people make new sorting algorithms just for these visualizations.

  • @qpauline100
    @qpauline100 3 года назад +3454

    puts fork in microwave 22:59

    • @grug2713
      @grug2713 3 года назад +138

      Username moment

    • @grug2713
      @grug2713 3 года назад +58

      @@arcturus4762 😃 what

    • @arcturus4762
      @arcturus4762 3 года назад +13

      @@grug2713 But would you

    • @cybercritterowo
      @cybercritterowo 3 года назад +5

      @@arcturus4762 No..?

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

      @@cybercritterowo Y tho

  • @mr_noobx3009
    @mr_noobx3009 3 года назад +21840

    X Æ A-12 first words are so cute

  • @AnotherYouTubeUser581
    @AnotherYouTubeUser581 3 года назад +6529

    mom: Go outside and play with the neighbors kids, they arent that bad
    the neighbors kids: 23:03

    • @elonleon4452
      @elonleon4452 3 года назад +211

      I remember the neighbours kids flying at piss of miles per hour.
      Good times.

    • @pixelcat29
      @pixelcat29 3 года назад +102

      POV: you have Elon musk as a neighbor

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

      @Noel Noel what does that even mean

    • @Cheese-fp8dy
      @Cheese-fp8dy 3 года назад +56

      Your neighbor is a printer?

    • @perhapsclem872
      @perhapsclem872 3 года назад +29

      @@Cheese-fp8dy seems like a thing Niko would say.

  • @dustinzacharias8227
    @dustinzacharias8227 Год назад +197

    Bogo bogo sort is the special one in the family. Pigeonhole sort is like, “Good job buddy, you sorted six shapes!”

    • @fnibbit
      @fnibbit 5 месяцев назад +15

      Have you ever seen bogosort successfully sort even that many numbers (it may happen but by god not often)

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

      @@fnibbit bogo bogo sort is literally bogo sort ^2

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

      Bogosort is already the special one, so bogobogosort is _extra_ special 😂

    • @malachitestorm
      @malachitestorm Месяц назад +2

      them bogos wete binted

  • @yatzeegamingop
    @yatzeegamingop 3 года назад +908

    57:55
    It just shuffled 6 numbers 200 million times to get it right...

    • @hairyputter5363
      @hairyputter5363 3 года назад +235

      That's bogo bogo. The ultimate Chad of sorting methods

    • @nuyabuisness7526
      @nuyabuisness7526 3 года назад +154

      6 possibilities in 6 positions. approximately 46 thousand possible outcomes. Is there a way for an efficiency number to be negative? I think being 2000 times less efficient than literal brute force testing has got to be a record.

    • @zevinneve
      @zevinneve 3 года назад +18

      Why does it suck so much? What use could it possibly have?

    • @astolfo11
      @astolfo11 3 года назад +102

      @@zevinneve the use is showing how bad it is of a sorting algorithm. Its just a joke algorithm, no practical use

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

      @@yosemite963
      That's not how permutations work.
      6 objects 6 places. Total outcomes (arrangement) = 6^6 =46566

  • @hamadcheats
    @hamadcheats 3 года назад +2981

    *_27:10_**_ That actually sounded like a haunted teapot._*

    • @Blockistium
      @Blockistium 3 года назад +125

      Polteageist!

    • @variegatus4674
      @variegatus4674 3 года назад +27

      @@Blockistium Give us a sign!

    • @quill7889
      @quill7889 3 года назад +18

      @@Blockistium I found the funny

    • @rkoislife1738
      @rkoislife1738 3 года назад +11

      nah sorry g i farded

    • @Mona-.-
      @Mona-.- 3 года назад +4

      Do u mean kettle or am I dumb

  • @rathors7184
    @rathors7184 2 года назад +3988

    The Tournament Sort 13:22 is just when you been working on a problem for a while, give up and then look up the answer online.

    • @toykoserpent804
      @toykoserpent804 2 года назад +174

      57:57=bogo sort been lackin

    • @ejayemendo6184
      @ejayemendo6184 2 года назад +16

      @@toykoserpent804 hm

    • @ejayemendo6184
      @ejayemendo6184 2 года назад +10

      thx toykoserpent

    • @VicDash78
      @VicDash78 2 года назад +48

      "please list your procedure on solving this problem" fuc-

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

      Im the 1000th like!!

  • @7axes
    @7axes Год назад +959

    21:12 Pigeonhole sort is an ABSOLUTE BEAST. Sorting 16k items in just 4 MILLI SECONDS (0.0004s)

    • @menooNFT
      @menooNFT Год назад +76

      im glad im not the only one super amazed by that

    • @ImScor327
      @ImScor327 Год назад +143

      Small correction, 0.004s, but it's still so damn fast...

    • @burntpyromaniac
      @burntpyromaniac Год назад +112

      It’s just: look at the thing, solve it.

    • @incription
      @incription Год назад +21

      Counting sort is faster I think they are using 14 bit numbers here

    • @ImXyper
      @ImXyper Год назад +12

      @@incription no pidgeonhole is faster

  • @jaimdiojtar
    @jaimdiojtar 3 года назад +5586

    27:02 when the water for my tea is ready

  • @harrisluo5818
    @harrisluo5818 3 года назад +8845

    My therapist: Gradually expanding slanted histogram doesn't exist. It can't hurt you.
    Gradually expanding slanted histogram: 23:43

    • @abyssalboy8811
      @abyssalboy8811 3 года назад +542

      It searches for blood.

    • @StarField369
      @StarField369 3 года назад +428

      It knows where you are. It is expanding to your location. You cannot run. You cannot hide. All you can do is beg.

    • @Blue-jy4rf
      @Blue-jy4rf 3 года назад +158

      That sort is the definition of anxiety

    • @MrYeet-ip4qj
      @MrYeet-ip4qj 3 года назад +65

      It has a timestamp, I like.

    • @alexvalente9733
      @alexvalente9733 3 года назад +96

      I genuinely laughed out loud at this. Like truly, this was the funniest thing I've experienced in a while. What is wrong with me.

  • @halicusnguyen8864
    @halicusnguyen8864 4 года назад +3968

    The most insane thing is that despite having no knowledge of how the heckity heck most of these work I still stay until the end.

    • @ZombieKing05220
      @ZombieKing05220 4 года назад +34

      literally same

    • @DaemonWorx
      @DaemonWorx 4 года назад +68

      I'm making sorts myself, that may someday show up in one of these videos and I still don't know how most of these work

    • @itsohaya4096
      @itsohaya4096 3 года назад +25

      @@DaemonWorx I'm refreshing myself on python specifically to make cool sorting algorithms! So far I've only been able to figure out bubble sort though, and my next goal is shaker sort

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

      It's actually pretty simple, here is a vid on how bubble sort works: ruclips.net/video/xli_FI7CuzA/видео.html I am not sure how you would code it tho, or really any thing about data sorting. I am pretty sure that this is just a visual representation of what is going on in code, and correct me if I'm wrong.

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

      I would say merge sort and insertion sort are the most intuitively obvious. Insertion sort is actually fast at tiny scales even though it seems really dumb.

  • @cole2999
    @cole2999 Год назад +69

    Nothing could have prepared me for 9:42

  • @nohintshere
    @nohintshere 3 года назад +6135

    me: "i'm not a robot"
    also me: "damn these sorting algorithms slap"

    • @jonathanjoestar3173
      @jonathanjoestar3173 3 года назад +50

      ikr

    • @pahrum
      @pahrum 3 года назад +64

      @@jonathanjoestar3173 b-but you are a robot?

    • @bobbycrofts9241
      @bobbycrofts9241 3 года назад +38

      The profile picture is what makes the joke that much better

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

      @@pahrum cries in rocket noises

    • @user-wh2vc3oi7p
      @user-wh2vc3oi7p 3 года назад +6

      you're talking here with a TV head

  • @randomdudepersonman2160
    @randomdudepersonman2160 3 года назад +1742

    "That goth girl is so cute! I wonder what she's listening to."
    What she's listening to: 55:07

    • @lenehammero7274
      @lenehammero7274 3 года назад +17

      My fave comment so far xD

    • @AngelicMiseryyy
      @AngelicMiseryyy 3 года назад +31

      🗿

    • @HeelJay
      @HeelJay 3 года назад +9

      Slow it down. Doesn’t it sound that Family guy scene where the church was trying to find a organist and the kid with the upside down head was playing lmao

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

      Leave these likes at 666 please

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

      This is just 100 gecs

  • @ghsclklkgpbchjj1550
    @ghsclklkgpbchjj1550 3 года назад +1866

    21:13 when you complete a round in a 90's game

    • @deja-vu6279
      @deja-vu6279 3 года назад +12

      SO TRUEEE

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

      JSJJAJAJAHAHHAHAHAHA

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

      @@deja-vu6279 shut up

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

      Was it not just the pinball on windows 97 or something

    • @Papasmurf47829
      @Papasmurf47829 3 года назад +12

      @@fruitsn4ck you shut up

  • @IL2PG
    @IL2PG 2 года назад +179

    My personal favorite is 57:50, there are so many numbers that it is unimaginable that a computer could process that much. I can barely count that far.

    • @bisousethiboux
      @bisousethiboux Год назад +15

      I can only count to four.

    • @youtube_wisdomclips
      @youtube_wisdomclips Год назад +6

      @@bisousethibouxNo need to toot your own horn here...

    • @amphibiland
      @amphibiland 6 месяцев назад +3

      @@davidthecommenter w reference

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

      Lmao

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

      @@davidthecommenter what in tarnation
      Edit: Okay I finally looked it up 😂

  • @bomberfish77
    @bomberfish77 3 года назад +913

    23:56 the most anticlimactic thing ever

  • @CE7341
    @CE7341 3 года назад +6319

    "They look depressed, I wonder what they're listening to."
    The quiet kids headphones:

  • @SarcasticCupcake223
    @SarcasticCupcake223 3 года назад +892

    This is probably the strangest, "out of the blue" thing RUclips had ever recommended me, but its oddly entrancing...

  • @dolger4308
    @dolger4308 2 года назад +592

    Shortest sort: 3.7ms (Pigeonhole[21:11]). Longest sort: 40.9s (Time Sort, Mul 10[26:49]). Honerable Mention: Silly Sort (572,566,806 Comparisons[49:26]).

    • @Your_favorite_seasoning
      @Your_favorite_seasoning Год назад +41

      Actually, longest sort is circle sort, 67.5s

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

      Thanks for this.
      Man, silly sort is an idiot

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

      @@Your_favorite_seasoning Thanks please for timestamp

    • @Your_favorite_seasoning
      @Your_favorite_seasoning Год назад +14

      @@odanedmcdonald np!
      Circle sort: 3:31

    • @odanedmcdonald
      @odanedmcdonald Год назад +48

      @@Your_favorite_seasoning Much thanks bro/sis. That's 67.5 milliseconds, simple mistake.

  • @OzMediaOfficial
    @OzMediaOfficial 3 года назад +2996

    I refuse to believe that Shell sort/Gravity sort isnt witchcraft.

  • @memz9324
    @memz9324 3 года назад +890

    23:45 *The new THX soundeffect sounds great*

  • @destroyerdan6945
    @destroyerdan6945 3 года назад +486

    19:44 so that's how they made the pac man death sound

    • @XhyRobtic
      @XhyRobtic 3 года назад +12

      Sounded more like flight of the bumblebees to me lol

    • @abichonfrise-vb6sy
      @abichonfrise-vb6sy 3 года назад +7

      or is it?
      hey vsauce michael here.

  • @cflam1
    @cflam1 Год назад +437

    Best Picture Awards:
    Iterative Pairwise Sorting Network (32:51)
    Recursive Pairwise Sorting Network (29:46)
    Gravity Sort (21:23)
    Best Music Awards:
    Exchange Bogo Sort (55:07)
    Grailsort (40:43)

    • @Zellebobba
      @Zellebobba Год назад +23

      My personal favorite in Picture award: Gravity sort

    • @nileprimewastaken
      @nileprimewastaken Год назад +9

      i like the iterative bitonic sort

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

      LSD Radix sort was cool, but not it's in-place variant...

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

      @@nileprimewastaken it's literally Moog City

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

      @@Zellebobba everyone loves Gravity Sort

  • @tofidu
    @tofidu 3 года назад +2309

    25:20 when you want the floor to be very very clean

    • @YTWstudio
      @YTWstudio 3 года назад +169

      then a cat come by: 57:57

    • @peejar2175
      @peejar2175 3 года назад +31

      except you forgot about the leftover line of dirt outside of the dustpan

    • @zthehuman7051
      @zthehuman7051 3 года назад +31

      Also comb sort : 3:01

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

      relatable

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

      It looks like it's pentuple checking if it's all right, going slower and slower

  • @yatsumura7
    @yatsumura7 3 года назад +1152

    15:36 There are some methods of sorting that I understand but this one was insane

    • @Ted_II
      @Ted_II 3 года назад +177

      Sorting speedrun any %

    • @zurps
      @zurps 3 года назад +184

      From what it looks like it is doing something serious with that auxiliary array rather than modifying the main array.

    • @karolus28
      @karolus28 3 года назад +105

      @@zurps idk what it means but it sounds right

    • @__-cd9ug
      @__-cd9ug 3 года назад +149

      looks pretty crazy, I tried to look into it and from what I could understand the first pass that we see is only gathering data which is why it's not changing the positions of anything in that Main Array; instead, it's inputting all the information into the Auxiliary array and the second pass 'reads' that information in a particular way which puts it in order.
      The way it registers the data is that it builds a 'binary tree' which apparently takes the first value as a reference point, then the second value will be either bigger or smaller than the first one, and that determines its 'position' relative to the first one. I've found visual examples on Google, all of which show something that looks more like a root system than a tree (or I guess it looks like an upside down tree) where the first value registered is on top, then the second is below it and to the left if it's smaller, or below it and to the right if it's bigger.
      Then as you keep inputting data it continues to do so, always passing through the whole tree I think. So like if your first value is 50, and your second value is 12 but the third one is 51, then you end up with 50 on top, (that's the root of the tree), 12 below on the left and 51 on the other side, linked to 50. But then if your 4th value is between 12 and 50, then you branch out from 12 and to the right. Every new value branches out from a previous value that doesn't have anything under it.
      The second pass of this system reads the whole tree, starting from the leftmost value, and following the branches of the tree in a specific order. I guess that's a pretty easy task to do for a computer once the tree is built and the reading order is defined, which is why that second pass is so fast.

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

      @@__-cd9ug cool

  • @fahrenheit2101
    @fahrenheit2101 3 года назад +1167

    4:27
    When you've already tidied your room but you have nothing else to do so you convince yourself its still messy to take up time.

  • @CutThroxt
    @CutThroxt 2 года назад +177

    I didn't realize how fast it was actually completing the sorts until I saw that the time it took for each one to be completed was mere milliseconds. Honestly astounding

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

      Except BOGO BOGO sort

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

      Sort() is fastest

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

      look at time sort at 26:50

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

      ​@@uuproverlord8324
      The sort() function is Timsort, and while it's one of the greatest, there are a few that are faster.

  • @doghound.
    @doghound. 3 года назад +1890

    teacher: finishes putting and charging laptops neatly and in correct order before class starts
    the laptops at the end of the class: 5:52

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

      @@acebeingace0002 we used to have that in elementary through 5th/6th grade now we just take the chrome books home

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

      @@acebeingace0002 I'm a respectful guy, I put the Chromebook in the right numbered spot and plug in the charger.

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

      @@spidermonk3uVvwy8-2 I think it’s a normal thing now. At first I thought it was just my school in my area cuz we won a google contest and they came to our school n shit but nah everybody on the wave lol we just didn’t have to pay for it b

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

      Then theres that lazy bum who puts a chromebook on a slot with another chromebook already in it

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

      My dad is a school teacher that had the cart with charging laptops in his classroom, so you already know who he makes to organize them back together at the end of the day everyday 😓

  • @tbtb66
    @tbtb66 3 года назад +2534

    "Yo the Earthbound soundtrack slaps"
    The Earthbound soundtrack:

    • @Christine.3671
      @Christine.3671 3 года назад +19

      It does slap tho ruclips.net/video/spF6PuFh7y4/видео.html

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

      Haha *yes*

    • @sarahtonin58913
      @sarahtonin58913 3 года назад +28

      This is even better because according to the description the uploader is a part of/a fan of the MOTHER 1 and 2 restoration project

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

      It slaps

    • @sinnersrevolution
      @sinnersrevolution 3 года назад +7

      As a person who’s a huge fan and actually played EarthBound, I can confirm that this is true.

  • @TheHappyKamper
    @TheHappyKamper 3 года назад +5147

    I would never have guessed this would be so interesting to watch. I love the echo you've added to the sound effects as well. I can almost picture the algorithms based on what's happening visually. Very cool stuff.

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

      Yhh

    • @mortalmyles
      @mortalmyles 3 года назад +16

      hey. you copied my name!

    • @cat-pizza
      @cat-pizza 3 года назад

      WHATS A ALGORITHEMS.?

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

      For some reason yeah

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

      @@cat-pizza Algorithms

  • @coldshotgg7100
    @coldshotgg7100 2 года назад +679

    I especially like the sort at 23:12 because it reminds me of my parents fighting at night when they thought I was asleep but little did they know that I was fully aware of the situation and cried myself to sleep

  • @ominous_fox704
    @ominous_fox704 3 года назад +618

    my sanity during the day: perfect amazing outstanding
    my sanity at 3am: 23:40

  • @Ghost-dq1he
    @Ghost-dq1he 3 года назад +2897

    The fact that one of the names of the sorts is *"Optimized gnome sort"* is beautiful to me.

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

      And it’s actually quite efficient

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

      Uuuhhhmmm optimized gnome sort is actually not particularly efficient!!

    • @NaThingSerious
      @NaThingSerious 3 года назад +25

      @@Musicombo ok, idk much about sorting algorithms but it seemed faster than most of the other sorts (idk if that makes it efficient)

    • @valdonchev7296
      @valdonchev7296 3 года назад +81

      @@NaThingSerious the speed in this video can be misleading. Two numbers to pay attention to in the top left are the number count (the more numbers sorted in the same time, the better) and the sort time (as opposed to visual time). There's also the question of space efficiency when it comes to using auxilary arrays, but that's a separate issue.

    • @toyotacorolla-dr9ds
      @toyotacorolla-dr9ds 3 года назад +28

      shoutout tim sort 37:14

  • @Glacial7
    @Glacial7 3 года назад +725

    This gets weirder when you realise that the black part is also being sorted in the exact same way

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

      Do you think that could be a way to store double data? By uaing the black?

    • @kolvis6626
      @kolvis6626 3 года назад +58

      @@maggsstuckey487 no because the black data is just the inverse of the white data. there's no way to really store different information there.

    • @ruger12
      @ruger12 3 года назад +9

      @@maggsstuckey487 basically a copy? reflection?

    • @iam2themax352
      @iam2themax352 3 года назад +18

      Wait they were sorting the white part?

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

      :(

  • @6g-radio-tower
    @6g-radio-tower Год назад +32

    my fave gotta be the gravitational sort at 21:54 no wonder plankton dated a robot

  • @craycraycat4917
    @craycraycat4917 3 года назад +757

    imagine this played loudly through a speaker in the middle of a corn field

  • @neino36
    @neino36 4 года назад +609

    Bogo bogo sort: I WILL FIND EVERY SINGLE POSSIBLE COMBINATION BEFORE I AM SURE! And when I do, I'll invent all other impossible combinations just to see if they fit better!

    • @bgm769-g2k
      @bgm769-g2k 3 года назад +20

      That must be the algorithm that Joshua was using in War Games to find the ICBM launch codes.

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

      normal bogo sort: i will try this random combination and check it

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

      Meox_ Seems like it does the same as bogo sort except it will keep going until it checked every combination, even after it finds the right one.

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

      It’s just 6??? It took a solid minute, at least 100 billion combinations to find the fucker that worked

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

      @@meox_ According to the official wiki, it's identical to bogosort except for how it checks whether the list is sorted:
      "To check if the list is sorted, use the following procedure:
      1) Make a copy of the list of numbers.
      2) Sort the first n-1 elements of the copy using bogobogosort.
      3) Check to see if the nth element of the sorted copy is greater than the highest element of the first n-1 elements. If so, the copy is now sorted, else randomise the order of the elements of the copy and go to step 2.
      4) Check to see if the copy is in the same order as the original list. "

  • @TheJudge1933
    @TheJudge1933 2 года назад +216

    "I'm 13 year old from Atlanta tryin to make outta the hood, these are my best beats"

  • @Levi_The_One_The_Only
    @Levi_The_One_The_Only Год назад +38

    Holy crap I just realized why I liked listening to these so much and why I keep coming back to this video to listen to in the background: the sound it makes is really good at masking tinnitus. There's a different video I watch that has a similar sound but it's specifically for masking tinnitus but I just realized how similar the sounds are.

  • @alexz7766
    @alexz7766 3 года назад +1239

    0:48 POV: You're falling down a bottomless pit

    • @imsiege
      @imsiege 3 года назад +34

      i see and hear this

    • @ShayerSUtsho
      @ShayerSUtsho 3 года назад +53

      Falling below bedrock in Minecraft

    • @ninjireal
      @ninjireal 3 года назад +11

      UNDERTALE

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

      @@ninjireal when it's not a pun but it's a pun

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

      all me see is vagene

  • @charact6165
    @charact6165 2 года назад +5711

    55:49 its so satisfying seeing how this moves, as if its in 3d.
    Edit: yes i got bored and watched this for an hour

  • @vidlurker8906
    @vidlurker8906 3 года назад +2757

    4:28 when a perfectionist sees something that is already clean

    • @JNJNRobin1337
      @JNJNRobin1337 3 года назад +95

      Gotta Make Sure Its Sterilized

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

      you mean me playing viscera cleanup detail

    • @catzillapurrfect4526
      @catzillapurrfect4526 3 года назад +62

      I know your amateur eyes cant see it, but it's a minuscule to the left.

    • @Dino-lw4mj
      @Dino-lw4mj 3 года назад +19

      It isnt clean, you can clearly see that it is angled 2 more degrees to the right than its supposed to be, and you didnt even sterilise it

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

      I can confirm, that's me

  • @mbmd_nation
    @mbmd_nation Год назад +51

    Thank you for giving Bogo sort a chance 🙏🏻

  • @K0IBEE
    @K0IBEE 3 года назад +2744

    i showed this to my dad and i swear he was like “oh thats a binary sort algorithm”
    he then started going off on how the program these and how they work for an hour and i have never been so flabbergasted

    • @Lucian4694
      @Lucian4694 3 года назад +311

      that’s a good dad, don’t lose it

    • @deanwalker6262
      @deanwalker6262 3 года назад +168

      Reading this and the comment brings a huge smile to my face. Everything about it, from the dad being cool, to leaving something on here about it, and having Lucian469 comment with those words….it’s fucking fabulous

    • @hollow5683
      @hollow5683 3 года назад +98

      I’m flabbergasted that you used the word flabbergasted

    • @eduardolindner9333
      @eduardolindner9333 3 года назад +42

      y'all so wholesome

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

      @@eduardolindner9333 W̷̡̡̡͎̞̤̖͎̘͓͗̉̿̈́̏͘ę̴̢̬̠̭̦̬̬̱̪̺̣̘̅ͅ ̷̡̣̖̬̭̗̹̥̐͛̾̃̋͆͒̓͊̊͘a̴̧̞̦͓̣͋̆͆͗͊͑͘ͅl̶̨͕̫̱͔͉̖͎͈̲̹̺͑̈́̾l̷̹͍̼̥̻̪͓̯̪̠̐͛̀̍̉͒̐̋͆̅̅̕ ̷̢̡̗̰̖͇̳̪͓̺͙̾̐̏̓̈́̌̈́̍̀̏ͅd̶̫̀̆̑̑͑̔͑̅̏̈́̏́͊͑į̶͖̰̙͔͖̳̹̭̱̺͉͈̮̀͗e̶̡͗̐͂̍̎̉ ̵̧̨̛̙̲͖̱̘̦̬̠̝͔͋͊͛̍̆̇̅́͘ê̷̡̛̲͉̝̘̦̟̬̬͈̺͐̉v̴̜̗͒̑͗e̷͖͕̙̺̯̘̠̙̳͒͊̽̋̈́͛̿̈́͗̋͋̆͝ͅn̶̤̭̜̰̭̫͋̃̈́͌̅͑͐͝t̸̞̬͓̜̺̳̬̺̺̖̱͔̚ừ̸̢̻̜͇͍̖̲̝̻͖̞͐̃͊̓̐̅̑͗a̵̙̦͎̗̙̤̗̤̣̾͠ļ̵̢̞͙̖͈̜̰̠̪͔̟͚͊͑l̴̼̻̤͠y̵̧̛̟̣̳̳̗̪̳̝̞̭͉̍͋͜ͅ.̵̧̧̡̧̼͕̻̻̻̟̿̐

  • @Jacob22941
    @Jacob22941 3 года назад +224

    19:48 sounds like flight of the bumblebee!

  • @viveonz
    @viveonz 3 года назад +178

    this is the only youtube video i can watch in 4k without it buffering or just straight up freezing

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

    7:59 pacman dying

  • @lefishe8303
    @lefishe8303 3 года назад +354

    This sounds like when I would run my fingers down my dad's comb as a child.

    • @NoOne-bc6sq
      @NoOne-bc6sq 3 года назад +5

      @Dillon Howington yes everyone did if you didnt growing up, you arent real

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

      IT DOES

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

      i rlly thought you said “dad’s womb”

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

      @@NoOne-bc6sq what about ppl without dads? Are they a figment of our collective imagination?!

    • @NoOne-bc6sq
      @NoOne-bc6sq 3 года назад

      @@J4red498 yes

  • @scottslogic
    @scottslogic 3 года назад +595

    31:16 so thats where pacman eating got his sound effect

  • @josephshepherd2021
    @josephshepherd2021 2 года назад +3769

    I like the Merge Sort at 15:52, reminds me of those games you keep building up bigger and bigger items starting at the base value

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

      Pac man

    • @TheDarkd3ath
      @TheDarkd3ath 2 года назад +44

      It’s one of the most efficient sorting algorithms

    • @LL-tr5et
      @LL-tr5et 2 года назад +74

      2048?

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

      tetris?

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

      @braingazer... Like dota 2, wow basically

  • @judahb3ar
    @judahb3ar Год назад +23

    iterative bitonic sort just made me so happy 30:40
    the best sort is not the fastest or most memory efficient: it is the sort the places the data into visually appealing, symmetric piles
    thank you iterative bitonic sort: the hero we deserve, but not the hero we need right now

  • @randomizer1227
    @randomizer1227 3 года назад +319

    somebody use this sounds and make a biblically accurate angels meme

    • @grapple_r3356
      @grapple_r3356 3 года назад +12

      Gotta add in a FEAR NOT somewhere

  • @sheepishly6942
    @sheepishly6942 3 года назад +413

    Never before in my life have I seen any form of Bogo sort actually complete its job. This is amazing

    • @dinonuggets1805
      @dinonuggets1805 3 года назад +84

      There is a universe out there where bogo sort sorts everything first try and no one knows why

    • @josugambee3701
      @josugambee3701 3 года назад +64

      @@dinonuggets1805 There is also a universe where Bogosort always succeeds first try, unless the computer is within 12 feet of a raccoon.

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

      When I was in high school, a friend and I coded it up in C to sort a list of length 11, showing intermediate steps. Nearly 20 minutes later, the process was complete! Turns out that we were reseeding the RNG and it caused the same sequence of random numbers to repeat for several iterations

    • @NoogahOogah
      @NoogahOogah 3 года назад +28

      There’s a universe where bogo sorts everything first try, except once, but nobody believes the guy who saw it fail.

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

      To be fair, it was sort of 8 numbers. There are only few hundred possible combinations of 8 elements

  • @samuelsalita1660
    @samuelsalita1660 3 года назад +3074

    I love the one at 23:00
    It's enough to make someone who doesn't usually get seizures get a seizure.

    • @kelpdock8913
      @kelpdock8913 3 года назад +229

      wait, why did you watch 23 minutes of this

    • @kelpdock8913
      @kelpdock8913 3 года назад +213

      @@starfowlshift I did but like shut up bro stop calling me out

    • @samuelsalita1660
      @samuelsalita1660 3 года назад +178

      @@kelpdock8913 There's only one answer and you know it:
      I got stuff to do and I don't want to do it.

    • @samuelsalita1660
      @samuelsalita1660 3 года назад +42

      @@kelpdock8913 Also, it was called LSD, and I really wanted to find out what that meant in this context.

    • @jeeode8289
      @jeeode8289 3 года назад +9

      Music sezuire

  • @1ch0r41
    @1ch0r41 2 года назад +13

    Bubble sort and merge sorting were fun to learn. These videos make me appreciate the efficiency of certain sorting methods.

  • @memekeeper-gaming3552
    @memekeeper-gaming3552 3 года назад +667

    "What is bogosort doing?"
    "Its best"

  • @daboohole3551
    @daboohole3551 3 года назад +1575

    30:40 has to be the most satisfying thing ever

    • @Fireball7428
      @Fireball7428 3 года назад +19

      In my opinion, LSD Radix looks better.

    • @dustinvanish
      @dustinvanish 3 года назад +37

      Heard Pacman midway through.

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

      Learning about the metric measurements be like

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

      @@juicymango8400 cuz i live in australia so like it’s normal here 😭

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

      No

  • @eliotdayley518
    @eliotdayley518 3 года назад +889

    When teach asks the class to line up alphabetically

    • @64-bit63
      @64-bit63 3 года назад

      @@choppercove 😳

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

      @@choppercove Ayooo

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

      @@choppercove what's bogo

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

      @@choppercove oh thx

    • @12gauge_shawtyy
      @12gauge_shawtyy 3 года назад

      fr that shit was always so hard

  • @ZA-mb5di
    @ZA-mb5di 2 года назад +30

    10:13 finally, a reversal

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

      If you like reversals you'll LOVE 46:05, an entire sort dedicated to flipping the array until it's sorted

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

      ​@@OutlandishMayhem With a matching name too!

    • @p_u_d_g_e-u4u
      @p_u_d_g_e-u4u 4 месяца назад

      58:25 it's so fast

  • @DriverNeku
    @DriverNeku 3 года назад +3102

    FNF players: yo this slaps, when the full week coming out?

    • @inkkladar
      @inkkladar 3 года назад +72

      Modders, do your thing. LOL.

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

      yo this slaps, when the full week coming out?

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

      I also want a 8192 key song

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

      @@pepsiman4282 with insta kill notes

    • @spidermonk3uVvwy8-2
      @spidermonk3uVvwy8-2 3 года назад +5

      @@Migosph and invisible notes

  • @peepsiee
    @peepsiee 3 года назад +1331

    The toilet normally: _quiet, not disturbing at all_
    The toilet at 3AM: 19:40

    • @Tetopettenson1
      @Tetopettenson1 3 года назад +42

      The goddang toilet is about to drop a nuke from all those crap streaks

    • @grim9040
      @grim9040 3 года назад +36

      @@Tetopettenson1 thats the worst sentence ive ever heard

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

      X D

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

      @@Tetopettenson1 wha ?

    • @lucylu3342
      @lucylu3342 3 года назад +7

      @@Tetopettenson1 I am going to sue you for putting "Crap streaks" in my mind.

  • @lilbologna8919
    @lilbologna8919 2 года назад +3554

    As someone with seizures this is very relaxing

    • @aaaaaa-hh8cq
      @aaaaaa-hh8cq 2 года назад +125

      Hol up

    • @stellasolaria3485
      @stellasolaria3485 2 года назад +139

      As someone with epilepsy, LSD sort is a certified convulsion moment

    • @jace7g
      @jace7g 2 года назад +57

      As someone with epilepsy I saw this and said bet

    • @jace7g
      @jace7g 2 года назад +28

      Yep still good on the not seizing part

    • @vivaleroca7511
      @vivaleroca7511 2 года назад +37

      Ooh. Seems like you've relaxed on the floor really well. The shaking must be therapeutic. /j

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

    The fact that Bogobogosort was able to sort a list of 6 elements with ""only"" 100 million comparisons is already a miracle and a half.

  • @GGCannon
    @GGCannon 3 года назад +125

    21:12
    *Snaps finger*
    "All in order"
    WHAT MAGIC IS THIS!?
    And weirdly enough, the start time stamp of the Pigeonhole can be read backwards and it will still be the same.

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

      So, is this the best sort algorithm so far?

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

      That auxiliary array though

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

      @@lemoncitrine7023 only 2 writes per element, that's insane

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

      @@andreasignatiou2003 It seems like it's only useable in certain situations

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

      It can only be used on numbers and it's O(n)

  • @linlinn_png
    @linlinn_png 3 года назад +1471

    *My favorites based on visuals and sound:*
    1:29 very satisfying to watch
    17:00 looks somehow like a minimalist design
    21:01 + 21:12 What is this sorcery sort
    21:21 amazing visuals
    23:00 it is literally called LSD, and now I know why, the end sounds like a plane taking off
    26:09 much better than comb sort
    26:50 sounds like a boiling tea kettle
    29:46 looks like increasinly abstract pixel art of distant mountains
    46:06 I just like the name, the suspense is too much
    55:48 nice.
    57:51 funny but still inefficient
    *The ones I hate:*
    2:59 this one has no right to take so f-ing long in the end
    5:56 too much suspense
    8:07 weird static sound
    9:42 to 11:26 seems really unnecessary to first sort it the opposite way
    13:22 I hate it that there is no progress at all for like 20s
    24:02 sounds like a big old printer but in bad
    49:26 it's already called silly and it lives up to its name...
    52:18 WHAT THE HECK stop taking so long (1+ for the sound tho)
    56:36 to 57:11 AAAAAAHHH
    57:57 WHAT?
    Edit: no worries to tell me, I do understand how most of them work by now XD

    • @linlinn_png
      @linlinn_png 3 года назад +12

      sus 👀

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

      The last one tho 👁👁

    • @Prodgelik
      @Prodgelik 3 года назад +7

      Sus

    • @filthyfrank.5
      @filthyfrank.5 3 года назад +3

      Just subbed to you 😂😂😂

    • @feritperliare2890
      @feritperliare2890 3 года назад +13

      The sorcery ones are quite simple to explain basically they cheat by knowing what numbers are going to be in the set of numbers and than just put them in place basically I assume in the counting sort 1 the numbers are from 1 to ~16000 so basically since it knows no number is outside of the range it goes to the place the number should be in order and just put it there

  • @megafan523
    @megafan523 3 года назад +280

    23:40 RUclips captions: "Music"
    Ah yes, the wonderful ear splitting noise of sorting algorithms

  • @ishu4227
    @ishu4227 Год назад +19

    i like how in cycle sort the sorted array just synthesizes into existence

  • @applesauce3883
    @applesauce3883 3 года назад +2832

    no idea why but this is one of the funniest videos i have watched in a while like how 24:43 just. slowly fades in

  • @CrashTherapy
    @CrashTherapy 2 года назад +4736

    if drugs had a sound they would sound exactly like this

  • @Doughyy736
    @Doughyy736 3 года назад +338

    55:48 this one is amazing. It's like it's rotating.

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

    the ones that go from lowest to highest frequencies are interesting because when you get to the middle-high range it starts to sound like a kettle boiling

  • @giancarloprado8206
    @giancarloprado8206 3 года назад +684

    "Algorithms are efficient"
    Then we have this guys:
    49:25
    57:56

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

      It’s mind blowing how it takes so long in the last guy to finish 6 blocks!

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

      @@minty_macaron Thats why its called Bogo Bogo

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

      @@giancarloprado8206 tru

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

      Why are you this far in the video?

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

      They are efficient compared to miracle sort. If sorted, then it's good, else wait and check again.

  • @futuure
    @futuure 3 года назад +262

    18:46
    That’s gotta be one of the most satisfying ones jeez

    • @g.ferreira6745
      @g.ferreira6745 3 года назад +17

      The next one ahead of this one, the lazy stable sort is really satisfying as well

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

      @@g.ferreira6745 vdd kk, apesar de eu não fazer ideia do que isso seja, eu gostei kk

    • @g.ferreira6745
      @g.ferreira6745 3 года назад +1

      @@rcarlosnunesrc eu tbm não sei muito, mas tem a ver com algoritmos q ordenam números bagunçados, cada algoritmo desses tem um jeito diferente de ajeitar

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

      THX Soundtest

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

      Bottom up Merge Sort - 17:00 this is a really close contender. It's such a joy this one from start to finish.

  • @g0tm1lk117
    @g0tm1lk117 3 года назад +304

    19:32 Galaga enemy decent noise.

  • @Inkdkid
    @Inkdkid 2 года назад +39

    23:43 sounds like a sound that builds up tension in a horror game

  • @squidwardfromua
    @squidwardfromua 3 года назад +223

    57:58 Imagine if there is an universe like our but with no possible sorting algorithms but bogo, so people have to use bogo sort each time.

    • @x-fun3149
      @x-fun3149 3 года назад +15

      pain.exe

    • @jordan869
      @jordan869 3 года назад +19

      In one multiverse bogo sort works on the first try, making it the fastest sorting algorithm

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

      @@x-fun3149 Jokes on you i use Linux!

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

      25 days later: WHY THE F**K IS IT STILL SORTING

    • @mr.bobcyndaquil4214
      @mr.bobcyndaquil4214 3 года назад +1

      @@cnr_0778 /usr/bin/pain

  • @vizzoanimates
    @vizzoanimates 3 года назад +2134

    my math teacher: how's the test going?
    me: it's going well.
    my mind desperately trying to understand the material: 55:07

    • @toothbrush-guy
      @toothbrush-guy 3 года назад +23

      Relatable asf

    • @JNJNRobin1337
      @JNJNRobin1337 3 года назад +28

      quick gotta put the things here and get it ready for use

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

      im 16 and still forget the formula for commission and percents in general 😍

    • @ss-yu2rh
      @ss-yu2rh 3 года назад +1

      FUCKING YES!

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

      Question: What is the square root of 50 plus 50
      answer: 0055aaeefhhilooopqrrssstttuuW

  • @Hu1tziil
    @Hu1tziil 2 года назад +1753

    8:05 cycle sort is so scary. You can see the triangle coming and there is no scape from it

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

    1:17 "it shuts its eyes"
    I don't even know what I'm doing here in the middle of the night bruh 💀🙏

  • @triptoliscent
    @triptoliscent 3 года назад +607

    Best way I can describe this is that the lines represent numbers. The numbers are being compared and sorted with one another to follow a certain pattern. Then it shuffles again. Although I still have no idea what im talking about and could be dead wrong.

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

      You got it! The taller the line, the bigger the number.

    • @triptoliscent
      @triptoliscent 3 года назад +47

      @@Musicombo Thank you, Im pretty surprised I was able to get that

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

      Congrats!!

    • @pringle-man
      @pringle-man 3 года назад +14

      @@triptoliscent don’t flatter yourself, it’s extremely obvious -_-

    • @triptoliscent
      @triptoliscent 3 года назад +60

      @@pringle-man eh, your opinion. not everyone has such an advanced knowledge of someone like you. oh please, enlighten us since you're so intellectually superior.

  • @richdelgado3405
    @richdelgado3405 2 года назад +826

    As someone who used to code sort routines in assembly (yeah, I'm THAT old) this video brought me great joy.

    • @zahid9582
      @zahid9582 2 года назад +41

      Damn you're THAT old?

    • @betprolol3
      @betprolol3 2 года назад +9

      Respect

    • @Naruhiu
      @Naruhiu 2 года назад +8

      Wait since you probably have a extreme understanding of this, could I get a dumbed down version of how these work or what they even are?

    • @roeital5504
      @roeital5504 2 года назад +34

      @@Naruhiu simple, there is numbers and each line is a number and has a value, this things are the outcome of sorting the number when the lowest is on the left and the highest is on the right, the comparisons is the code comparing 2 valueables, the swaps is... swaping

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

      I cant comprehend this. How does this work and what does it do. My brain hurts

  • @Apophis-en9pi
    @Apophis-en9pi 3 года назад +211

    When it looks sorted but the algorithm is like IM NOT DONE

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

      Comb sort looked like it was patting the array down trying to make sure it was just so.

  • @EPIC_BOI69
    @EPIC_BOI69 Год назад +7

    Me: verifying that I am not a robot
    Also me: wow these sorting algorithms are the best videos ever!

  • @TharinzZ
    @TharinzZ 2 года назад +3059

    22:58 has to be one of the most insanely chaotic things I’ve ever witnessed

    • @F3Ibane
      @F3Ibane 2 года назад +254

      It's like abject chaos and then when you've finally had enough, an inescapable dirge starts tolling the end.

    • @itz-JxN
      @itz-JxN 2 года назад +81

      It’s one of the coolest ones here imo

    • @Nebulisuzer
      @Nebulisuzer 2 года назад +72

      It's called a in-place LSD radix sort

    • @kreeperkiller4423
      @kreeperkiller4423 2 года назад +177

      LSD sort is an acurate name

    • @nicetry69420
      @nicetry69420 2 года назад +57

      The fact that a Radix sort can be done without comparisons is both utter chaos and yet beautifully intricate lol

  • @LlamasOnJUPITER
    @LlamasOnJUPITER 3 года назад +392

    i got so excited about how fast gnome sort was until i realized how many fewer numbers it was sorting 😭

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

      Same. I hate it that it are never the same in tje vid. And no reason for that :///

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

      What's never the same?

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

      @@nekrugderzweite8298 the reason is because if it were given the same amount as the better sorting algorithms it would take fucking ages lol, if all of them got the same number of elements to sort the video would be intolerably long

    • @imbadatusernames3304
      @imbadatusernames3304 3 года назад +13

      @@grebe2332 its already 59 fuckin minutes i don't think we care anymore

    • @kamil118
      @kamil118 3 года назад +11

      @@grebe2332 The video doesn't even use the same timescale for all sorts. Some sorts only take 60ms and take like 30s of the video, other take a minute, and barely take one of the video.

  • @dethswurl117
    @dethswurl117 3 года назад +190

    *I was so impressed by pigeonhole sort until I looked it up lol*
    For those interested
    It basically takes each number (x) in a list (L) and puts the number at: L[ x ]
    In other words, if we had [2, 1, 0, 3] then it would start by putting 2 at the 2nd index in the list:
    [0, 1, 2, 3]
    So it only works when the list is the exact same size as the range of your input (I know there's more to it and that you could just use an array of size max(x) but it's still not as cool as I thought 😥)

    • @dethswurl117
      @dethswurl117 3 года назад +18

      @Grakata Like if you found the number "10" in a list, then you would put it in the 10th position of that list
      Now do this for every number in the list. Like if you see "4" next, then put "4" in the 4th position. Next I find "20", so I put it in the 20th position and etc.
      If you do this for every number, it would just end up sorted without any effort beyond putting the numbers in a position matching their value. Hope this was easier to understand

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

      @@dethswurl117 i finally understand, thanks man

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

      @@komedi8902 I'm glad, np :)

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

      @@dethswurl117 is spaghet ok

    • @miss.floppa1637
      @miss.floppa1637 3 года назад

      Pizza spaghetti pasta.

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

    Comb sort made me chuckle it really was "combing" through that stack to tease out the last little "unsorted" values 😂❤ WTF HOW DID I END UP WATCHING SO MUCH OF THIS! I DON'T EVEN DO ANY SORT OF DATA ANALYTICS OR ALGORITHM CODING?!?!?! Somehow this is just soothing and fascinating to watch ❤👍

  • @Takapon218
    @Takapon218 3 года назад +495

    58:19 when you step into an irradiated zone in a video game

    • @nakulab
      @nakulab 3 года назад +5

      Fallout 3

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

      Geiger counter moment

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

      @@nakulab stalker....

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

      Minecraft Nether biome ambience

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

      Call of duty 4 Modern warfare's chernobyl mission moment

  • @alloice642
    @alloice642 3 года назад +261

    RUclips: "They will watch anything from this point"

    • @lcrazy8l
      @lcrazy8l 3 года назад +5

      The algorithm:
      Let's just show them what they look like from our side.

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

      69 likes, nice.

  • @cheeseeater4434
    @cheeseeater4434 3 года назад +634

    23:00 Behold: In-Place LSD Radix Base 10, the god of sounds
    23:43 it gets b e t t e r
    23:54 Y E S

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

      i dunno, man... i totally heard our robot overlords speaking to us.

    • @XalphYT
      @XalphYT 3 года назад +35

      22:22 is best sort

    • @TheDBest1994
      @TheDBest1994 3 года назад +5

      When its LSD I hope this doesn't get clear past the censors.

    • @aman-hl9re
      @aman-hl9re 3 года назад +1

      Daft punk stuff going on

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

      Ah yes, the sweet sweet AC hum.

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

    It'd be nice for one of these where they're all in the same time base, and same elements... sort them from "least efficient for a significantly random set" vs "most efficient"

  • @TimoIvvie
    @TimoIvvie 2 года назад +1368

    I love how the Bogo Bogo sort, despite having 6 things to sort, takes FOREVER, I can only imagine what horrors come at 8192 numbers, or larger…

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

      It’s a statistic impossibility to be able to Bogo sort 8192 instances

    • @Joetheknight406
      @Joetheknight406 2 года назад +44

      I'm surprised it only took 15s tbh

    • @clembra1
      @clembra1 2 года назад +151

      @@Joetheknight406 15 seconds and 200 million swaps

    • @KingofJ95
      @KingofJ95 2 года назад +64

      @@suclox12yearsago56 I mean, it's also statistically impossible for it to shuffle it into the first order it mixed it into.

    • @OutlandishMayhem
      @OutlandishMayhem 2 года назад +93

      The algorithm was specifically DESIGNED to not finish until the heat death of the universe...(in nerd language, *NEVER*)

  • @imsiege
    @imsiege 3 года назад +448

    42:22 spongebob swearing

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

      So... quarantine affected you huh?

    • @imsiege
      @imsiege 3 года назад +5

      @@snowboi9904 been a shut in 4 life baby ain't nothin changed

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

      @@imsiege understandable have a great day sir

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

      Seshtillirest

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

      What

  • @Mr152008
    @Mr152008 3 года назад +81

    23:00 - Most fun to watch sort (LSD)

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

      Ironically, the sort that most resembles the visuals of an LSD trip is the Iterative Bitonic Sort (illustrated best from 31:13 onwards). If you imagine the white cones as an edge you are looking at on LSD, those edges will often take on a "hairy" fractal effect. It makes me wonder how much of our brain function mirrors mathematical equations, or if the way LSD affects the visual centers of the brain can be modeled mathematically.
      "Currently, the most compelling theories of how psychedelics exert their effects is by increasing the complexity of brain activity and moving the system towards a critical point between order and disorder, creating more dynamic and complex patterns of neural activity... physics suggest that as a system organizes towards criticality, it tends to take on a fractal structure."

  • @semicool103
    @semicool103 Месяц назад +2

    genuinely really like watching these videos they help me relax