50+ Sorts, Visualized - Swirl Dots

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 มิ.ย. 2024
  • Visit our community Discord: / discord
    Okay, I know I said I would be done with sorting for a while, but I did have a couple of extra videos lying around. Why not upload them? These are some upgraded visuals from my original sorting videos. Enjoy!
    Learn more about sorting algorithms here: en.wikipedia.org/wiki/Sorting...
    Check out the NEW home for ArrayV here: github.com/gaming32/ArrayV-v4.0
    Check out the Mother 1+2 Restoration project: / discord
    Special shoutout to WurstRELOADED ( / @wurstreloaded ) for doing the video's chapters!!
    Exchange family
    0:00 Bubble Sort
    0:22 Cocktail Shaker Sort
    0:37 Gnome Sort
    1:05 Optimized Gnome Sort
    1:22 Odd-Even Sort
    1:41 Comb Sort
    2:09 Quick Sort
    2:22 Stable Quick Sort
    2:43 Dual-Pivot Quick Sort
    Selection family
    3:05 Selection Sort
    3:16 Double Selection Sort
    3:28 Max Heap Sort
    3:52 Min Heap Sort
    4:17 Ternary Heap Sort
    4:37 Weak Heap Sort
    4:53 Smooth Sort
    6:07 Tournament Sort
    Insertion family
    6:37 Insertion Sort
    6:54 Binary Insertion Sort
    7:12 Shell Sort
    5:15 Cycle Sort
    7:28 Patience Sort
    Merge family
    7:41 Merge Sort
    8:30 In-Place Merge Sort
    Non-comparison family
    9:00 American Flag Sort, 256 Buckets
    9:14 Bead (Gravity) Sort
    9:40 Counting Sort
    9:46 Pidgeonhole Sort
    9:52 Radix LSD Sort, Base 4
    10:22 In-Place Radix LSD Sort, Base 16
    10:46 Radix MSD Sort, Base 8
    11:08 Flash Sort
    11:20 Shatter Sort
    11:39 Simple Shatter Sort
    12:00 Time Sort (Mul 4) [more widely known as Sleep Sort]
    Sorting Networks / Concurrent family
    12:16 Batcher's Bitonic Sort
    13:11 Batcher's Odd-Even Merge Sort
    Hybrids
    13:34 Hybrid Comb Sort (Comb/Insertion)
    13:55 Binary Merge Sort (Merge/Binary Insertion)
    14:41 Weave Mergee Sort (Merge/Insertion)
    15:34 TimSort
    16:18 WikiSort (Block Merge Sort)
    16:57 GrailSort (Block Merge Sort)
    17:24 std::sort (Introsort)
    17:46 Quick Shell Sort (Introsort with Shellsort)
    18:06 std::stable_sort (Insert/Bottom-up Merge)
    Esoteric / Fun
    18:35 Pancake Sort
    21:14 Stooge Sort
    22:09 Bad Sort
    22:30 Silly Sort
    24:10 Slow Sort
    25:51 Less Bogo Sort
    27:10 Cocktail Bogo Sort
    28:37 Bogo Sort
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 1.1K

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

    Join our community Discord! discord.com/invite/2xGkKC2

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

      Cool! Did you just pin this?

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

      @@D144AU_Creations Yup, just pinned this!

    • @platinum-or3y
      @platinum-or3y 2 ปีที่แล้ว

      ok

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

      Huh what?

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

      Bro I just posted a volume warning for radix sort base 16

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

    I feel honored to be among the privileged few who got this in their recommended.

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

      Same but I have no clue what it is still

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

      @@bamdenie3466, the video is showcasing sorting algorithms with points on a spiral.

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

      $5

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

      Me too, sorta.

    • @maskmarvin803
      @maskmarvin803 4 ปีที่แล้ว

      Yeah, even I gt here.

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

    Other people: let's watch something I understand
    Me: haha sorting algorithm go brrrrr

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

      quality comment.

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

      best comment i've seen in a looong time

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

      wow you're so special

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

      @@rigzmoviediaries654 see my balls

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

      quirky 🤪😜 lol

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

    16:44 The demonetization sort

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

    I'm a huge fan of the "estimated real time" counter, so I can see which sorts are actually faster! It's hard to tell a lot of the time, with different sorts being slowed down different amounts.

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

      Thank you!!

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

    9:39 counting sort is unreal

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

      Pigeonhole sort was even better

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

      O(n) sorts are unreal
      But they aways have soe restrictions...
      Conting sort woks only when the numbers are in a known interval, and the larger the interval is slower is the algorithm

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

      With a reasonable interval (let's say 1-1000000) it can be done in O(n) time. However as an integer's max absolute value is 2^32, those can't be counted in an array - one would use an associative container, like a map, instead. Since inserting an element into a map takes O(log n) time and one must insert n elements, the total complexity would be O(n log n), which is similar to (for example) quicksort or mergesort.

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

      Counting sort is good for numbers, but if you’re sorting complex objects, it’s pretty useless.

    • @homemadefilms5718
      @homemadefilms5718 3 ปีที่แล้ว

      That makes sense, counting numbers is pretty quick and easy

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

    12:58 The algorithm is forming a heart

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

      Or a breast

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

      3 types of people

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

      4 types

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

      this reply chain reads like a fucking tumblr post

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

      Or a squished orange.

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

    Exchange family
    0:04 Bubble Sort
    0:22 Cocktail Shaker Sort
    0:37 Gnome Sort
    1:05 Optimized Gnome Sort
    1:22 Odd-Even Sort
    1:41 Comb Sort
    2:09 Quick Sort
    2:22 Stable Quick Sort
    2:43 Dual-Pivot Quick Sort
    Selection family
    3:05 Selection Sort
    3:16 Double Selection Sort
    3:28 Max Heap Sort
    3:52 Min Heap Sort
    4:17 Ternary Heap Sort
    4:37 Weak Heap Sort
    4:53 Smooth Sort
    6:07 Tournament Sort
    Insertion family
    6:37 Insertion Sort
    6:54 Binary Insertion Sort
    7:12 Shell Sort
    5:15 Cycle Sort
    7:28 Patience Sort
    Merge family
    7:41 Merge Sort
    8:30 In-Place Merge Sort
    Non-comparison family
    9:00 American Flag Sort, 256 Buckets
    9:14 Bead (Gravity) Sort
    9:40 Counting Sort
    9:46 Pidgeonhole Sort
    9:52 Radix LSD Sort, Base 4
    10:22 In-Place Radix LSD Sort, Base 16
    10:46 Radix MSD Sort, Base 8
    11:08 Flash Sort
    11:20 Shatter Sort
    11:39 Simple Shatter Sort
    12:00 Time Sort (Mul 4) [more widely known as Sleep Sort]
    Sorting Networks / Concurrent family
    12:16 Batcher's Bitonic Sort
    13:11 Batcher's Odd-Even Merge Sort
    Hybrids
    13:34 Hybrid Comb Sort (Comb/Insertion)
    13:55 Binary Merge Sort (Merge/Binary Insertion)
    14:41 Weave Mergee Sort (Merge/Insertion)
    15:34 TimSort
    16:18 WikiSort (Block Merge Sort)
    16:57 GrailSort (Block Merge Sort)
    17:24 std::sort (Introsort)
    17:46 Quick Shell Sort (Introsort with Shellsort)
    18:06 std::stable_sort (Insert/Bottom-up Merge)
    Esoteric / Fun
    18:35 Pancake Sort
    21:14 Stooge Sort
    22:09 Bad Sort
    22:30 Silly Sort
    24:10 Slow Sort
    25:51 Less Bogo Sort
    27:10 Cocktail Bogo Sort
    28:37 Bogo Sort

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

      thx

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

      What is this video? I have no idea what im watching

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

      @@raynel1000 These are different sorting algorithims usually used by computers. Here's a TED-ED Video if you'd like to learn more. th-cam.com/video/WaNLJf8xzC4/w-d-xo.html

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

      @@raynel1000 different logic style shit for computers to Read/Write/sort ect.

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

      @@raynel1000 a visual representation of algorithms to sort objects, mainly used for numbers but I guess it works for anything

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

    28:36
    I'm so proud of Bogo :)

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

    11:10 When you know the answer to a problem but you don't feel like showing your work

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

    There are efficient sorts, there are impractical sorts, there are even beautiful sorts...
    Then there's that one sort that just decides to just go creative.
    12:15

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

      ❤️

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

      Parallel sorts are neat. They're often pretty inefficient on normal processors, but become extremely efficient when running on a GPU, where you can dispatch like 10000 simultaneous threads.

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

      I was sitting here thinking “why is it making leaves?”

    • @clyde-or-monty
      @clyde-or-monty 2 ปีที่แล้ว

      and then theres 10:23

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

      @@clyde-or-monty most menacing sort

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

    10:24 That sound when I microwave my baked potato with the tin foil still on

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

    9:50 for radix sorts

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

      Thanks!

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

      got an ad

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

      There is no Radix Base 10...

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

      Yo what that's cool

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

      I doubt there is an easy explenation on how it works, is there?

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

    This quarantine is making me watch some strange stuff

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

      We probably reach the end of the youtube algorithme proposition

    • @amethystt727
      @amethystt727 4 ปีที่แล้ว

      Same

    • @dewaeryadi7776
      @dewaeryadi7776 4 ปีที่แล้ว

      I watch youtube like 12 hours per day because of the quarantine

    • @idontknowyoureally525
      @idontknowyoureally525 4 ปีที่แล้ว

      😂😂😂

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

      Yeah bro, I m italian it s my 19th day of quarantine, qurantine in my city started 7th march. You will live some really strange stuff

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

    Silly sort: takes 18 actual seconds
    Me: yea seems pretty silly

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

      18 seconds with 256 dots, with 2048 dots it would still be running.

    • @417Owsy
      @417Owsy 4 ปีที่แล้ว +10

      silly sort be like: lol nyeh nyeh nyeh I'm silly woooo yoohoo blbllbbllblblblb hahaha im a silly guy look at me

    • @eclipse-music
      @eclipse-music 3 ปีที่แล้ว

      Slow sort: takes even longer

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

    10:21 - My nervous system when I hit my elbow

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

      Perfect. Somehow that just works. Have a good day.

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

      these are always so accurate

    • @otesunki
      @otesunki 3 ปีที่แล้ว

      Ooof.

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

      *Ae* U *Ꮐ* h

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

    16:17 is my favorite, because it moves like an indecisive clock and also draw a curvy swastika in the process for some reason

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

      Sylvester Markotzki least favorite*

    • @Rafael-oq9vu
      @Rafael-oq9vu 4 ปีที่แล้ว +11

      @@p0tatogod533 nooooooooooooo you cant say swastika nooooooooooo

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

      Found the nazi

    • @safe-keeper1042
      @safe-keeper1042 4 ปีที่แล้ว +10

      Hey, Nazis gotta sort things, too!

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

      @@p0tatogod533 most favorite*

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

    10:10 Radix sort is just BEAUTIFUL.

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

    3:18 sounds and looks like a slow motion Pac-Man death.

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

      At the beginning of the sound it also looks like Pac-Man

    • @disgustingoozeling2476
      @disgustingoozeling2476 4 ปีที่แล้ว

      It does indeed!

    • @goodluck6948
      @goodluck6948 4 ปีที่แล้ว

      yo that's true! how'd you notice that!!

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

      More like 4:54

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

      It looks like a pac man death too

  • @skylinefever
    @skylinefever 5 ปีที่แล้ว +413

    The odd-even sort and heap sorts look much more interesting in this mode than in other modes. Radix sorts are also more interesting because they convert several spirals into one spiral.

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

      and comb

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

      Now if only odd-even wasn't _so. fucking. slow._ Is it meant for hardware like gravity sort?

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

      @@dorukayhanwastaken Odd-Even Sort is meant for parallel processing, where each element is processed independently on a CPU core.

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

      @@dorukayhanwastaken Check out the sorting network page on Wikipedia. You'll see that the graphs of the comparators show which groups of comparators can be done in parallel. Odd-Even can be done as a sorting network.

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

    28:24 My arm after it falls asleep

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

    why am i watching sorting algorithms again?

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

      Same

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

      Because Google said so.

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

      Because the TH-cam Algorithm says so.

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

      The real question is, why not?

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

      Cause this one is cool and different because it visualizes it with Fibonacci spirals instead of just the regular bar graph style ones

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

    My days of watching sorting algorithms has paid off to show me even more sorts

    • @ZM-dm3jg
      @ZM-dm3jg 3 ปีที่แล้ว +1

      Are ya winning son

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

    12:20 is the best, from flowers to ass. It drew everything.

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

    Radix LSD bases/sorts family
    9:54 Radix LSD Sort, Base 4
    10:23 in-place Radix LSD Sort, Base 16
    10:47 Radix LSD Sort, Base 8

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

      in-place is mind boggling

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

      Radix sorts are always my favourite when visualized

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

      10:47 Radix *MSD* Sort

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

      ​@@toyama3307 samree

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

    16:44 boutta get demonetized

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

    Did I just watch a computer sort dots for 30 minutes?
    Yes I did.

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

    this has to be the coolest way possible to visualize the radix sorts (9:52) and Batchers bitonic sort (12:16)

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

    The min heap sort ending at 4:08 is unbelievably satisfying.

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

    3:16 RIP pacman

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

    Just in case somebody wonders - angular position of a dot is a position in the array, the distance from the center is the magnitude of the number. When sorted, the magnitude is proportional to the angular position, hence spiral is formed. We start with a random array of numbers from 1 to 2048 (hence random pattern forming a circle).

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

    10:00 ok this is beautiful!

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

    10:24 The language of the gods

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

    12:17 is beautifull and i have no clue what that computer is doing

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

    Is this ART?
    : SORT of...

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

    comb sort is so much more pleasant to watch in this format

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

    Fun fact: you can only be recommended this video, you’ll never see it otherwise

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

    I like the moment it drew a 6

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

    7:27 what happend ? o.o
    it's like, it was just looking around and suddenly figured out the right order lmao

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

      9:37 is even better lmao

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

      -you are already dead.
      -nani?

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

      it was ordering them elsewhere, and when it was ready just copied it to the visualized array

    • @yky1360
      @yky1360 4 ปีที่แล้ว

      Zahid 😂 this is sooo epic man

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

      Myles 9:45 is better

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

    I wish someone would make a sort video that would give a short explanation of how each sort worked.

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

      Might do that in the future!

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

      @@Musicombo Did you? It's been a while

    • @AlexMoreno-zj7po
      @AlexMoreno-zj7po 3 ปีที่แล้ว +3

      I want one ranking sort speeds on initial arrays that are random, reverse sorted, almost sorted, etc., to show the strengths and weaknesses of various sorts. All these vids seem to just do random initial arrays.

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

    This is definitely the coolest visual representation of sorting algorithms I’ve seen so far! You can really see the differences between the different algorithms, and a lot of them are pretty mesmerizing too!

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

    9:52 this and next one, crazy visuals! love it!
    11:08 extremely fast
    9:00 muricuh

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

    16:43 *Banned in Germany*

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

    my boi Radix LSD Sort out here absolutely PERFORMING as always

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

    woaw this is so fascinating , the sound effect is also astonishing. i hope they make more of this

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

    10:22 this one gave me anxiety

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

      Jay Bivins well, it has LSD in the name

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

      @@leiph Least significant digit

    • @frogdaddystar9694
      @frogdaddystar9694 4 ปีที่แล้ว

      It made me tilt my head

    • @AlexKuz
      @AlexKuz 3 ปีที่แล้ว

      @@wladfan still LSD

  • @treday9231
    @treday9231 5 ปีที่แล้ว +27

    I love your vids! Keep making them. (:

  • @safe-keeper1042
    @safe-keeper1042 4 ปีที่แล้ว +1

    I have no idea of what it's doing or why it's doing it, but watching it is oddly satisfying, so here I am.
    Also many of those graphics would make for nice loading screen backgrounds.

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

    I leave this under every video I watched, it helps the algorithm.

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

    3:20 perfect opportunity for a pacman death sound

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

    3:17 Oh, that's PAC-Man! Both visually and audibly. Interesting!

  • @devdylan6152
    @devdylan6152 4 ปีที่แล้ว

    i watched this half a year ago, spent a long time trying to find this gem again.... this is an amazing... so calming.

  • @trans-serif
    @trans-serif 2 ปีที่แล้ว +1

    i can't begin to stress just how cool in-place radix lsd sort looks here

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

    Don't know why, but this is one of the most relaxing videos on YT for me.

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

    It's crazy how different the duration's of these algorithms can be. From 0.484ms (9:46) to over 8 seconds (12:00), even up to over 18 seconds (22:30)

    • @m.h.6470
      @m.h.6470 4 ปีที่แล้ว +8

      you did realize, that the 18 seconds one actually only has 256 values, while the other two have 2048 values, right?

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

      @@m.h.6470 Yeah... so? What's your point?

    • @m.h.6470
      @m.h.6470 4 ปีที่แล้ว +2

      @@Niscimble The point is, that you can't compare them directly like you did.

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

      @@m.h.6470 Why not? They are both sorting algorithms in a sorting algorithm video. Wouldn't it be even more surprising that the longest one has less things to sort?

    • @m.h.6470
      @m.h.6470 4 ปีที่แล้ว +6

      @@Niscimble it's like comparing two motorcycles with a bicycle ... sure, you can do it, but it is stupid and doesn't really tell you anything.

  • @sweet.2881
    @sweet.2881 2 ปีที่แล้ว

    been watching these for the last 2 months every now and then, no idea what im looking at but lets fucking go

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

    This is the visualization of what I program to do in terms of sorting for school. Glad to see this satisfying video.

  • @00SNIVY00
    @00SNIVY00 4 ปีที่แล้ว +84

    12:59 happy valentines day :v

    • @Sub-no2sn
      @Sub-no2sn 3 ปีที่แล้ว

      dates a computer

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

    I think Batcher's Bitonic Sort is my favorite out of these since it drew such interesting pictures.

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

    12:59 I love you too batcher’s bitonic sort!

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

    My grandkids listen to this soothing music every day. They are so happy they are jumping arround on the floor. Truly life-changing.

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

    Wow, the diference in speed between some methods is astounding.

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

    May I ask how this visualize works? The distance between dots and center is their value but how to determine their coordinance in a 2d plane?

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

      (v sin(2tπ/a), v cos(2tπ/a))
      With
      v=dot's value,
      t=dot's position in array, starting with 0
      a=array's length - 1

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

      You guys got it!

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

      It's using polar coordinates, which means instead of "x" and "y", you specify their coordinates as an angle "theta", and a radius "r". The radius is their value, and the "theta" is their position in the array.

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

    This video is the coolest sorting video i’ve ever seen

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

    Pidgeonhole sort: You're weak.
    Counting sort: I'm You.

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

    9:28 had me ROLLING!

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

    Girl: Hi
    My Brain: 10:23
    Me: Potato

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

    I love your content! My brain is so satisfied!

  • @spinaljuice4596
    @spinaljuice4596 3 ปีที่แล้ว

    I don't know what this is used for but it makes me happy.

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

    8:30
    For In-Place merge sort, if the first element of the second sub array is lower than the first element of the first sub array, you move everything between where you are inserting that element and that element's index up one array index to make room for it in place. This requires no additional comparisons. The comparison count for In-Place merge sort should be no higher than normal merge sort.

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

    Ah nothing beats cottage life and sorting algorithms with the boys

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

    the odd even sort looks so trippy with this swirl pattern, i love it :0

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

    Wonderful. Thanks for posting.

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

    In 1973 I took my first college course in programming, and one of the topics we covered was sorting. I recently checked the programming courses offered by our local university (University of Hawaii) and found that their introductory course includes sorting as a topic. WHY? No one in their software engineering career ever has to design a new sort algorithm. No one has to understand the techniques and issues involved. It's a long-ago solved issue. Programmers need merely select a sort library and call the appropriate methods, if they even ever have a need to do any kind of sorting. There are so many, MANY new and interesting topics that could be made part of an introductory programming course in order to expose the student to the basics of programming and to expand their interest in programming. So why oh why is sorting still part of the curriculum? It just boggles the mind.

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

    What the hell is Silly Sort doing? Comparisons for the fun of it?

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

      It's doing its best.

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

      @@TheRealBatabii 22:30

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

      @densch123 that is bogo sort

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

      @densch123 That was the very last one with eight values. 22k comparisons, 102k swaps, 206k writes to array
      FOR EIGHT

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

    Really interested in the coding aspect nice work ❤

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

    This is very satisfying to watch

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

    Got this recommended after watching some touhou music
    Is this a spellcard attack?

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

    great, we have a program that can sort my spilled rice if i ever feel lazy

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

    I notice that your dots are generated more often closer to the center-if you want a uniform circular distribution, generate them at a radius between 0 and 1 with a random angle, then for each point, take the square root of the radius. There's a marvelous proof that shows why this works that is too long to contain in the margins ;)

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

    thats an interesting way to visualize sorting, nice video.

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

    This came on auto play after an asmr video. Really interesting to watch, not so interesting to try and comprehend what in the hell I was listening to without knowing what this is !

    • @gralha_
      @gralha_ 4 ปีที่แล้ว

      Different methods to sort things

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

    how girls sort things out 9:39
    how boys sort things out 10:22
    how i sort things out 25:50

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

      how i sort things out: 18:35

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

      I love how this implies you're neither boy or girl

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

      Radix is actually a rather intuitively way to sort, you basically compare the different digits, first caring about the smallest and working up from there

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

      alexander grimley
      That which has no life cannot be assigned a gender.
      I should know. I have no life, and thus I’m just a lifeless object. 🧱

    • @falpsdsqglthnsac
      @falpsdsqglthnsac 4 ปีที่แล้ว

      How I sort things out: 28:37

  • @entrophany
    @entrophany 4 ปีที่แล้ว

    Yes. A masterpiece. I'm so glad youtube recommended this

    • @Musicombo
      @Musicombo  4 ปีที่แล้ว

      Haha, thank you!

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

    28 minutes of sorting.
    What is this, heaven?

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

    TH-cam algorithm, tell me why...

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

      Because.

    • @WarbossRB
      @WarbossRB 4 ปีที่แล้ว

      @@dislike__button *GASP* SQUIDWARD!

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

    came 2 times at 9:43 and 9:49... Could you tell me more about the draw function? Its the Golden Spiral i think but how to draw this? Is 0 in the MIddle or on Top?

    • @-flxwly-1549
      @-flxwly-1549 4 ปีที่แล้ว +4

      You can draw this using a polar coordinate System. Instead of coordinates you have an angle and a distance. If you now Plot the index of each element as your angle and the value as distance to the middle or the other way you get something like that.

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

      @@-flxwly-1549 i love you. thanks

    • @VioletGiraffe
      @VioletGiraffe 4 ปีที่แล้ว

      I was just about to ask what kind of a spiral this is. Is it really a golden spiral?

    • @TheVergile
      @TheVergile 4 ปีที่แล้ว

      @@VioletGiraffe im on my phone right now so i cant check, but if you are curious just make a screenshot and measure. compare distance at 360 degrees with 270 degrees. if the ratio between them is phi its golden.

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

      for index and value pairs just do:
      map index values to angle:
      angle=2pi/maxindex*index
      map values to radius (or more correctly distance from center) such that growth rate is phi. (so over 1/2pi (90 degrees) the ratio of values is phi).
      radius=phi^(4*value/maxvalue)
      apply whatever scaling you need for desired spiral size.
      (this works for continuous values. if you have random numbers and want smooth spiral you need to pre-index them)

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

    Awesome! It is just missing Stalinsort in the esoteric part x) !!
    (Stalin sort is a meme in O(n), basically you iterate through the list checking if it's in order, and if it isn't, you "kill" it by getting it off the list)

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

    Best video ever thank you youtube.

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

    1:23 When the LSD hits

  • @FM-lc6hp
    @FM-lc6hp 4 ปีที่แล้ว +5

    i wonder about the algorithm behind this kind of sort 9:47

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

    Not sure what made me end up watching a bunch of sorting algorithms visualization vids, but I like it

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

    the spiral visualization is so relaxing

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

    12:59 - Damn, Batcher's Bitonic Sort's lookin' THICC 🍑

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

    As Frozone would say,
    WHERE IS MY BOGOSORT!

    • @angelalen1615
      @angelalen1615 4 ปีที่แล้ว

      i sexually identify as a bogo sort

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

    I am glad to say that I understand most of the terminologies of the things shown in here

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

    as always, gravity sort looks super cool

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

    *SPACE IS ALLIGNING*

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

    7:13 i pretty much like this one the most so far :v
    EDIT: 9:53 found a better one (nvm 10:23)
    12:16 yuuuup

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

    I don't know what this is, but for some reason i enjoy it