20 Sorting Algorithms Visualized

Поділитися
Вставка
  • Опубліковано 19 лис 2024

КОМЕНТАРІ • 292

  • @glenndelacruz8157
    @glenndelacruz8157 2 роки тому +87

    0:35 + 2x speed = sick beat

  • @ashermain_2000
    @ashermain_2000 Рік тому +33

    Radix Base 10 not being absolutely bass boosted is a blessing.

  • @TheTvIsBroken_FD
    @TheTvIsBroken_FD 2 роки тому +45

    0:41 Wow the music is so cool

  • @Holac0moestan132
    @Holac0moestan132 Рік тому +23

    2:26 it looks like a cat

  • @aster_the_lil_guy
    @aster_the_lil_guy Рік тому +16

    3:10 sounds sick

  • @thewoodfamily6511
    @thewoodfamily6511 4 місяці тому +7

    0:25 perfect heart

  • @abysspegasusgaming
    @abysspegasusgaming 11 місяців тому +3

    0:35 I was feeling a bit froggy that Sunday... Must've been a witch that turned me into a newt. I'm all better now though.

  • @glitcher9453
    @glitcher9453 Рік тому +12

    Shell sort somehow makes a sick beat.

  • @gtdmg489
    @gtdmg489 3 роки тому +71

    The visual and sound reminds me of worthy.

  • @FBI_agent_24
    @FBI_agent_24 2 роки тому +18

    0:23 Motorcycle sound be like:

  • @TubedroidtheYoutubeFan10years
    @TubedroidtheYoutubeFan10years 2 роки тому +10

    2:24 your business has a emoji cat

  • @XX-35withtophat
    @XX-35withtophat Рік тому +11

    2:26 wow

  • @Obstagoon862
    @Obstagoon862 3 роки тому +29

    Gravity sort was so satisfying!

  • @INTVEAYSLM2024
    @INTVEAYSLM2024 Рік тому +13

    i didnt feed my colors for one millisecond and now they TWEAKIN 💀💀💀💀💀💀😭😭😭😭😭⁉️⁉️⁉️⁉️😂😂😂😂😂

  • @raffeld.afrinaldi8911
    @raffeld.afrinaldi8911 2 роки тому +23

    1:53 normal turns circle point

  • @wrigglel
    @wrigglel Рік тому +6

    0:03 rainbow sign (rainbow spread)

  • @MoosesValley
    @MoosesValley 4 роки тому +38

    Awesome work. These visualisations may not help a beginner understand / differentiate the various sorting algorithms, but they sure are interesting and make a lot of sense when you understand the algorithms, have written the code to implement them, etc. eg. The merge sort splitting the array in half over and over and then recombining the chunks recursively. You are proving that even after 70+ years of digital programmable computers, we can still find new and interesting and sometimes better ways to visualise processes and data. Keep up the great work !! +1 LIKE. +1 SUBSCRIBE.

    • @CompilerStuck
      @CompilerStuck  4 роки тому +2

      Thank you very much!

    • @rcb3921
      @rcb3921 3 роки тому +2

      "These visualisations may not help a beginner understand / differentiate the various sorting algorithms."
      There is no need to soften or qualify your criticism, it is spot on. This work does not help one to understand sorting algorithms.

    • @AleksSPace
      @AleksSPace 3 роки тому +1

      @@rcb3921 Too much "art", too little "sense". Starting with shuffle.

    • @maurolionelmipianoyyo11
      @maurolionelmipianoyyo11 2 роки тому

      I know how to insertion sort

    • @CompilerStuck
      @CompilerStuck  2 роки тому +1

      If you wanna play around with it yourself: github.com/CompilerStuck/sorting-visualizer

  • @eyeman2534
    @eyeman2534 2 роки тому +10

    0:46 looks like a Ruffles

  • @XD-vd2xw
    @XD-vd2xw Рік тому +7

    X: whats 6 + 4?
    My brain: 1:31
    Me: 47

  • @MoonGold42
    @MoonGold42 2 роки тому +11

    5:48this is making me dance

  • @フィッシュラス
    @フィッシュラス Рік тому +5

    0:37 is a banger

  • @TheForsakenHero318
    @TheForsakenHero318 Місяць тому +2

    idk why bro chose these sounds and put the sorts in this order but it's mad cool
    4:28 these are all double selection sort bro???

  • @matthiashenke5306
    @matthiashenke5306 Рік тому +3

    This is the Best Sound Ever

  • @Kyle_the_duck
    @Kyle_the_duck Рік тому +6

    0:00 me dancing:

  • @irapuanjuniorferreira7286
    @irapuanjuniorferreira7286 Рік тому +4

    4:08 Selection sort 6:31 bubble sort 7:16 3:08 double selection sort

  • @rhowendelossantos6303
    @rhowendelossantos6303 28 днів тому +1

    0:20 0:41 0:35 cool beat!

  • @bethgerong4481
    @bethgerong4481 3 роки тому +12

    no one: minecraft loading screen creating a new world be like: 1:01

  • @ProTheRobloxer
    @ProTheRobloxer Рік тому +1

    Cycle Sort: Who are you?
    Double Selection Sort: I’m you, but faster

  • @nunthenihtara608
    @nunthenihtara608 3 роки тому +24

    Medal for Shell sort: 🥇

  • @arcrius4
    @arcrius4 Рік тому +6

    It seems like Bucket sort at 5:38 was doing what I normally see Pigeonhole sort do in other videos. (Elements equals writes to main array, writes to aux array is 2x elements, and no swaps).
    I had no clue what the Pigeonhole sort in this video was doing at 3:22.

    • @N0TP0ST1NG
      @N0TP0ST1NG Рік тому +3

      3:22 - Pigeonhole Sort
      8/10
      It's so good! I like the sound.

    • @XX-35withtophat
      @XX-35withtophat Рік тому

      ​@@N0TP0ST1NG me too

    • @chrisrodriguezm13
      @chrisrodriguezm13 Рік тому +1

      The pigeonhole sort was pretending itself to be the insertion sort

    • @kawkanat1616
      @kawkanat1616 9 місяців тому

      @@N0TP0ST1NG really cool

  • @paulmark992
    @paulmark992 11 місяців тому +2

    This sounds like an 80s video game

  • @Nick-40o
    @Nick-40o 4 роки тому +40

    Have the visualization be the word "Sort",and I'll watch your videos.

  • @pvpqs
    @pvpqs 2 роки тому +7

    2:29 cat

  • @kagechu2005BISVG
    @kagechu2005BISVG 2 роки тому +6

    0:35
    ain't no way
    1:55 also, 2x the speed for something else

  • @zohnannor
    @zohnannor 3 роки тому +51

    I think pigeonhole sort is wrong

    • @zohnannor
      @zohnannor 3 роки тому

      yeah. you totally confused all the sorts

    • @Leviathan1132
      @Leviathan1132 2 роки тому +1

      Yeah

    • @KreeFree-2
      @KreeFree-2 Рік тому

      No they aren't

    • @zohnannor
      @zohnannor Рік тому

      @@KreeFree-2 can you show why?

    • @KreeFree-2
      @KreeFree-2 Рік тому +1

      @@zohnannor cuz the gravity of the earth rotates everything of colors and moons of madness is the best time to stay home and take you to the moon is the best time scrolling down the street is so good to stay strong and can form for the 1 quadrillion a joke is so much better than the world is the new the world end of a middle aged in bourbon and can form

  • @andee2126
    @andee2126 Рік тому +1

    0:40 why does this remind me of a Minecraft music track called moog city

  • @yapwilson666hulksmash
    @yapwilson666hulksmash 3 роки тому +4

    0:25 The heart shaped

  • @kawkanat1616
    @kawkanat1616 9 місяців тому +2

    0:36 its like a song

  • @TOBB2K24
    @TOBB2K24 10 місяців тому +1

    0:35 fire

  • @SkibidiSigmaAUTTP
    @SkibidiSigmaAUTTP 4 місяці тому +1

    5:47 hey kid, wanna listen to this beat?

  • @Musicombo
    @Musicombo 4 роки тому +27

    This is pretty cool stuff! Is this your app or a fork of w0rthy's with your own improvements?

    • @CompilerStuck
      @CompilerStuck  4 роки тому +8

      Thank you! I wrote all code by myself, inspired by worthys and your videos

    • @Musicombo
      @Musicombo 4 роки тому +5

      @@CompilerStuck That's pretty rad, considering the inspirations shine through. Is this Java or Processing?

    • @CompilerStuck
      @CompilerStuck  4 роки тому +8

      @@Musicombo Well.. it's java, using Processing ;)

    • @Musicombo
      @Musicombo 4 роки тому +5

      @@CompilerStuck Cool! I gave you a shoutout on my channel. You deserve some attention :P

    • @CompilerStuck
      @CompilerStuck  4 роки тому +5

      Thank you! Means a lot to me :)

  • @user-pn7ty2he6m
    @user-pn7ty2he6m 4 роки тому +39

    Very interesting, thank you. Any chance I could get a copy of your spreadsheet? You gathered some wonderful data but I couldn't play with it!

    • @CompilerStuck
      @CompilerStuck  4 роки тому +2

      Hey, thanks for your feedback.
      I am currently setting up a GitHub-Repo with my stuff, but it's private yet.
      I could contact you when i publish it.

    • @user-pn7ty2he6m
      @user-pn7ty2he6m 4 роки тому +2

      @@CompilerStuck Cool! You can reach me at y4zxx1ypp9sb@opayq.com or just post here.

    • @CompilerStuck
      @CompilerStuck  4 роки тому +1

      @@user-pn7ty2he6m kk

    • @CompilerStuck
      @CompilerStuck  2 роки тому +2

      It has been long, but here it is: github.com/CompilerStuck/sorting-visualizer

    • @marble5515
      @marble5515 2 роки тому

      LoL .. 2 years

  • @tcat9281
    @tcat9281 14 днів тому

    lovin' it.

  • @mayzdev
    @mayzdev Рік тому +4

    0:23 heart

  • @Handles_Are_Bad_Lol
    @Handles_Are_Bad_Lol 2 роки тому +6

    Why does shuffling take so long when bogosort exists?

  • @apportensmortis
    @apportensmortis Рік тому +1

    THE ONE AT 0:35 GOES FUCKING HARD

  • @KtmBowAndDavincifan
    @KtmBowAndDavincifan 2 роки тому +3

    2:27 EMOJICAT

  • @naruhodoryuichi_daniel
    @naruhodoryuichi_daniel 2 роки тому +2

    I like this sound of sorting.

  • @UnitedStatesOfAmerica-US0
    @UnitedStatesOfAmerica-US0 8 місяців тому +1

    7:19 me laughing atva cave and realises there is no caves

  • @glenndelacruz8157
    @glenndelacruz8157 2 роки тому +2

    2:22 giant eared

  • @ashutoshmahapatra537
    @ashutoshmahapatra537 Рік тому +2

    Odd even sort is like a fan 😂

  • @yatsu5591
    @yatsu5591 3 роки тому +4

    This edible aint sh...

  • @Henqee
    @Henqee Рік тому +8

    I like this so much! I tried to imitate it for my coding practice, but I am having trouble finding the distance between two elements. I could not see to connect the beginning and the end of the array;( If you don't mind, can you tell me how to do that?

    • @CompilerStuck
      @CompilerStuck  Рік тому +7

      Hey! That sounds fun :)
      You gotta think about what you want to achieve by calculating the disparity:
      Finding the minimum distance between the elements original position, and the position it is currently moved to.
      So you gotta calculate the absolute distance in both ways, forward and backward, and select the smaller value of both
      That would translate to sth like this:
      min(abs(current_pos - org_pos), array_length - abs(current_pos - org_pos))
      I hope this help :) Have fun coding!

    • @Henqee
      @Henqee Рік тому +4

      @@CompilerStuck Amazing! Thank you! It was helpful!

  • @Offical_Skyla_Slimepup1223
    @Offical_Skyla_Slimepup1223 2 місяці тому

    1:53 my brain processing something hard on a school test

  • @koshland.mapper
    @koshland.mapper Рік тому +1

    Odd even sort be punching that flower 1:56

  • @MichelleAtxtxsaagtllred
    @MichelleAtxtxsaagtllred 4 місяці тому +2

    2:29 feline

  • @Kids_Scissors
    @Kids_Scissors 2 роки тому +1

    damn, a whole lot of these just kinda look like the douboe selection sort

  • @CompilerStuck
    @CompilerStuck  2 роки тому +7

    Source Code available at: github.com/CompilerStuck/sorting-visualizer

  • @Majin_kid_buu
    @Majin_kid_buu 2 роки тому +2

    0:33 this sounds like a song

  • @martinefrensoquigomez7835
    @martinefrensoquigomez7835 Рік тому +3

    4:28 Mario Bros. when you beat a level

  • @LVETOT
    @LVETOT 3 роки тому +2

    Subscribed! :D

  • @rhowendelossantos6303
    @rhowendelossantos6303 28 днів тому

    2:26 Odd Even Sort looks like a shape of a cat❤❤❤

  • @foxxdyeah
    @foxxdyeah 2 роки тому +2

    how you instaledSorting Algorithm

  • @SuperDZ555
    @SuperDZ555 2 роки тому +7

    fnf fans be like: this goes so hard

  • @kjrichardson2892
    @kjrichardson2892 2 місяці тому +1

    2:27 Looks like a cat 🐱

  • @BGQV
    @BGQV Рік тому

    “hey that girls cute! I wonder what she's listening to.“

  • @RichardsonDoesStuff
    @RichardsonDoesStuff 11 місяців тому

    *_Yellow, Cyan and Pink have left the chat._*

  • @AlexverseTheFanCoOwner
    @AlexverseTheFanCoOwner Рік тому +2

    BEAD SORT 0:19

  • @jimmykeech2467
    @jimmykeech2467 Рік тому +1

    3:23 sounds like "setting sun" by chemical brothers

  • @ericcartman80085
    @ericcartman80085 2 роки тому +1

    Yellow, cyan, pink left the chat

  • @raffeld.afrinaldi8911
    @raffeld.afrinaldi8911 2 роки тому +2

    5:09 with shape strawberry lol

  • @maurolionelmipianoyyo11
    @maurolionelmipianoyyo11 2 роки тому +6

    If you use lsd radix sort base 10 then put 4 and 2

  • @YukiNakaya-x8g
    @YukiNakaya-x8g 2 роки тому +2

    0:01 Shuffling…

  • @wrigglel
    @wrigglel Рік тому +2

    touhou attacks

  • @YourLocalBaconRblx
    @YourLocalBaconRblx 2 роки тому +4

    In 2:31, This shape looks like a cat.

  • @ahmadsyed1964
    @ahmadsyed1964 Місяць тому

    In the odd even sort, emoji cat

  • @KhoiDang-z4g
    @KhoiDang-z4g 5 днів тому

    2:28 odd even sort❌
    Cat✅

  • @back22297
    @back22297 10 місяців тому

    This is how my moons orbit me

  • @michaelsaunders1400
    @michaelsaunders1400 4 місяці тому

    Hi, Atari!

  • @anomalie3034
    @anomalie3034 4 роки тому +2

    gabber up!

  • @EwanChang
    @EwanChang 4 місяці тому +1

    DISPARITY LOOP WOTH REVERSE INPUTS?!

  • @DaniellaSantiago-lk2zh
    @DaniellaSantiago-lk2zh 3 місяці тому +1

    1:06 eeeeeeaaaaaaauuuuuuuu

  • @nikmrn
    @nikmrn 2 роки тому +1

    my brain during an exam

  • @jcfreak73
    @jcfreak73 Рік тому +1

    By what attribute are these points being sorted? It doesn't appear to be either position or color.

    • @CompilerStuck
      @CompilerStuck  Рік тому +1

      It is by color. They are arranged in a circular pattern.
      But each points distance from the center is defined by the distance to the points original position in the array -> Disparity

    • @jcfreak73
      @jcfreak73 Рік тому +1

      @@CompilerStuck got it! Thank you

  • @user-nj2vm2nj5j
    @user-nj2vm2nj5j Рік тому +2

    What’s the game called

  • @cherylchui4510
    @cherylchui4510 16 днів тому

    How does the visuals work?

  • @slimecraft656
    @slimecraft656 7 місяців тому

    0:39 that shape like flower

  • @marianellasanchez6480
    @marianellasanchez6480 2 роки тому +2

    That sounds so weird

  • @LittleFarmLife1637
    @LittleFarmLife1637 Рік тому +2

    Δ00:02:27 do you see "😻?"

  • @haidecanon2470
    @haidecanon2470 11 місяців тому +1

    1279 segments?

  • @endersoncorrea8659
    @endersoncorrea8659 4 місяці тому

    2:66 WOW!

  • @minestudiolikelimelife8555
    @minestudiolikelimelife8555 Рік тому +1

    2:48 cat?

  • @RustyDogeNBee
    @RustyDogeNBee Рік тому +2

    👍🏻👍🏻👍🏻

  • @pomidorka_
    @pomidorka_ Рік тому

    why does it shuffle in such a strange way?

  • @KhoiDang-z4g
    @KhoiDang-z4g 4 дні тому

    1:21 this a red dot 🔴

  • @Csoki-v4y
    @Csoki-v4y 4 місяці тому

    20 Sorting Algorithms Visualized

  • @indic5584
    @indic5584 Місяць тому

    Cause him agonys worst nigtmare

  • @absolutelyeverything2035
    @absolutelyeverything2035 16 днів тому

    Taurus 6:01

  • @bonkser
    @bonkser Рік тому

    can the particles go anywhere in the circle they get sorted into

  • @HD_kev
    @HD_kev 2 роки тому

    Cool