Every Sorting Algorithm (part 2): The Weird and Obscure

Sdílet
Vložit
  • čas přidán 11. 06. 2024
  • ATTENTION: This is part 2 of my series on sorting algorithms, but I recently changed the title and thumbnail slightly.
    In this episode, I explain some weird and obscure sorting algorithms.
    part 1: • Explaining EVERY Sorti...
    twitter: / kuvina_4
    Chapters:
    0:00 Intro
    0:35 Cycle
    1:14 Patience
    2:23 Exchange
    3:08 Odd-Even
    3:42 Circle
    4:43 Merge-Insertion
    5:43 Tournament
    6:29 Tree
    7:39 Gnome
    8:11 Library
    8:59 Strand
    9:50 Topological
    10:48 Sorting Networks
    12:18 Bitonic
    14:13 Odd Even Network
    14:37 Pairwise Network
    15:13 Stooge
    16:03 Slow
    17:04 Quantum Bogo
    17:28 Thank you!
    #sorting #algorithm #computerscience
  • Věda a technologie

Komentáře • 130

  • @Kuvina
    @Kuvina  Před 11 měsíci +19

    twitter.com/@Kuvina_4

  • @AJMansfield1
    @AJMansfield1 Před 11 měsíci +244

    See, problem with quantum bogo sort is that what the algorithm _really_ does is basically guarantee that the computer will experience a failure that causes it to incorrectly report the randomized list as sorted, since even that sort of miniscule probability of a hardware fault is just the more likely of the two by a huge margin.

    • @warriorsabe1792
      @warriorsabe1792 Před 11 měsíci +39

      That's where the cleverness of quantum programming comes in, that description is a bit more jokeified than the real way it would work, which involves causing the combined wavefunction to interfere with itself in such a way that it massively amplifies the probability of the desired outcome while simultaneously destroying the probability of the other ones. That's how quantum computers work in general, by doing things to the wavefunctions that mess with probability so the correct answer always happens - imagine adding numbers by rolling a magic die that weights itself to only ever roll the number you want, for example

  • @vinccool96
    @vinccool96 Před 9 měsíci +78

    My two favourites that haven’t been mentioned are sleep sort, working on numbers only, where you sleep X amount of time for each value and insert them at the end of the sleep.
    By my favourite, is miracle sort: you look if it’s sorted, if it’s not, you wait a bit and look again to see if, because of a miracle, it’s now sorted. You can pray or sacrifice something to (try to) accelerate the sorting time.

    • @vinccool96
      @vinccool96 Před 9 měsíci +24

      I also forgot Stalin sort. Where you purge data that isn’t sorted. Pros: it’s always in O(n). Cons: worst case, you purged all values except for the first one

    • @Kuvina
      @Kuvina  Před 9 měsíci +20

      Thank you! These 3 are probably the algorithms I've gotten the most comments about and they'll definitely be in part 3 !

    • @zuthalsoraniz6764
      @zuthalsoraniz6764 Před 9 měsíci +17

      There's also intelligent design sort: The odds of the list randomly being in the specific order that you find it in is astronomically low, 1/n!. Thus, it was clearly set up in that order by an Intelligent Sorter, according to whose divine plan it is already sorted, and who are we mortals to question the Intelligent Sorter?

  • @mars5train601
    @mars5train601 Před 9 měsíci +47

    I've worked at a clothes store, and just realised I've implemented a version of patience sort independently. I need to sort stacks of clothes by their size, and they start out basically completely shuffled. The main difference is that I sort the intermediate piles in reverse order, so that when I reassemble the final stack, it comes out the right way up. (cos I add new clothes to the top of the stack) Glad to see the idea has been studied with a name and theory behind it

    • @Wonky2
      @Wonky2 Před 9 měsíci +12

      I had a similar experience when I was an intern at an office. I had to sort stacks of numbered paper documents (thousands of them, I think around 14k), but there were sequences of already sorted papers, and I found a way to take advantage of that: I would take two small stacks of sorted papers, merge them into one larger stack like in insertion sort, then get two other smaller stacks, merge them, and then merge the two resulting large stacks and just kept going like this. Some time later I learned about Timsort, which is a sorting algorithm that's pretty similar to my paper-sorting method. It's cool how many sorting algorithms in computer science can also be used in the real world.

  • @byzatic8507
    @byzatic8507 Před 11 měsíci +104

    It's insane how good these videos are compared to the view count. You deserve millions with these videos.

    • @Kuvina
      @Kuvina  Před 11 měsíci +15

      Thank you so much!

    • @mxsteri0
      @mxsteri0 Před měsícem +1

      YOU ARE GOD DAMN RIGHT

  • @ShadowKestrel
    @ShadowKestrel Před 9 měsíci +16

    Slowsort is cool and all, but I'm surprised there was no accompanying mention of worstsort - what if we cranked the inefficiency factor up to *nested factorials*

  • @mekafinchi
    @mekafinchi Před 5 měsíci +6

    the fun thing about sorting networks is that, by dedicating a piece of hardware to each comparison, you can pipeline the sort so that the system as a whole sorts a full list per cycle. It's the kind of thing you might find on an FPGA. Although it'll have far higher latency than one cycle, the throughput would be absurd.

  • @TheBalthassar
    @TheBalthassar Před 10 měsíci +17

    The bitonic comparison graph has another application within Factorio as a belt balancing graph.

    • @acters124
      @acters124 Před 9 měsíci +4

      literally saw that too, especially the larger balancers like 32 by 32 and above.

  • @Patricia_Taxxon
    @Patricia_Taxxon Před 4 měsíci +2

    obsessed with the small stipulation that quantum bogo sort isnt stable

  • @hexthe
    @hexthe Před 11 měsíci +11

    As a geometry fan, I am incredibly excited for your next video

  • @Troloze
    @Troloze Před 9 měsíci +3

    This video was aweasome, please go over bogobogo sort and miracle sort in the next video, I find them hilarious.

  • @magicfoxgaming1500
    @magicfoxgaming1500 Před 9 měsíci +9

    Can you do miracle sort too? Amazing video btw, I learned a lot.

  • @warriorsabe1792
    @warriorsabe1792 Před 11 měsíci +28

    Once quantum computers become common, quantum bogo sort wouldn't even be a joke algorithm - and with what I know of quantum programming, I believe if you entangle all the elements you can even do the steps as a single operation each, making it not even as slow as O(n). The "destroy the universe" thing is a bit tongue-in-cheek, though, because what it's really doing is setting up an interference pattern that destroys the possibility of that universe happening in the first place when the wavefunction is collapsed

    • @the_cheese_cultist
      @the_cheese_cultist Před 10 měsíci +6

      it has been proved that quantum computers cannot do comparison sorts faster than nlogn. so time wise they are no better
      however there are spacewise improvements to classical algorithms

  • @petzel64
    @petzel64 Před 9 měsíci +1

    I love your videos so much! You are so good at explaining math and science! 😄

  • @space302
    @space302 Před 10 měsíci +3

    I think that the pairwise sorting network is the same as the odd-even except that instead of merging 2 adjacent sorted lists, it merges 2 interleaved lists.
    So the "divide" part of divide-and-conquer is done by splitting the data according to the least significant bit of the indices, instead of the most significant one.
    Also, it wins extra points by being the prettiest.

  • @kiraangle2823
    @kiraangle2823 Před 9 měsíci +1

    I saw one called crow sort once, it only works on integers with no duplicates. You read each value, place the value in the index for its value, then delete each empty spot. It does zero comparisons besides empty checking. Kinda fun.

  • @KinuTheDragon
    @KinuTheDragon Před 11 měsíci +4

    Yay Quantum Bogosort!

  • @orbitros
    @orbitros Před 6 měsíci +1

    I came here to ask that you actually put (Part x) on your video titles please. I watch youtube on my TV and it is hard to get to the description and not having the Part 2/3/4/ect in the title makes finding the right video difficult. Thank you for your time and videos. They are very informative and I am enjoying them. Keep up the good work.

  • @thatoneguy385
    @thatoneguy385 Před 9 měsíci +1

    The quality is insane, you deserve orders of magnitudes more subscribers!
    Heres another sorting algorithm: For each element in the list, you start a new thread. The thread sleeps for as many microseconds (any other unit of time would also work) as its value, then writes its value back to the list.
    Here is my analysis of this algorithm: It isn't stable, its space complexity is n and the time complexity depends on the biggest element in the list.
    It also isn't guaranteed to sort the list since computers aren't perfect machines.

    • @seard8442
      @seard8442 Před 9 měsíci

      I think it have a name which is Sleep Sort. Not sure if you’re referring to it tho.
      This algorithm could have big trouble when sorting 1, 2, 9999.
      This algorithm cannot sort negative value as well.

  • @igNights77
    @igNights77 Před 11 měsíci +8

    Can't wait for part 3!

    • @ClementinesmWTF
      @ClementinesmWTF Před 10 měsíci +1

      You really think he could make 6 of these? Gee golly I hope so(factorial)

    • @m_affiliates
      @m_affiliates Před 9 měsíci

      ​@@ClementinesmWTF they go by they/them btw

    • @ClementinesmWTF
      @ClementinesmWTF Před 9 měsíci +1

      @@m_affiliates ok…noted. But also, wooosh

  • @ultra824
    @ultra824 Před 10 měsíci +2

    another joke sorting "algorithm" that i enjoy is Intelligent Design Sort; it goes like this
    1: observe that there are n! possible orders that the array could have been in
    2: further observe that this means that the odds of it being in the order that it is by sheer chance 1/n!
    3: this is so improbable that the possibility can be discounted.
    4: therefore, an intelligent designer must have put the elements of the array in that order for reasons beyond our understanding.
    5: therefore, the list is already in the correct order.
    this "algorithm" technically has a time complexity of 1, but, well...

  • @electra_
    @electra_ Před 11 měsíci +5

    I think i accidentally discovered a variation of one of the Sorting Networks when trying to figure out how you could best run a tournament that ranked every player. (assuming all players not sharing a match could play at the same time, the goal would be to optimize the number of "rounds" which is effectively trying to optimize a parallel sorting algorithm)
    My solution was also O(nlogn^2) where the n is gotten rid of in paralellization. The other sorting networks mentioned here were of the same time complexity, so I hypothesize logn^2 is the best you can do for a parallel sorting algorithm, but I don't know for sure.

    • @Kuvina
      @Kuvina  Před 11 měsíci +5

      Apparently, there is an nlogn network called the AKS network. But it does not become faster than the odd even network until n is above 302 sextillion.

    • @electra_
      @electra_ Před 11 měsíci +4

      @@Kuvina call that ass-ymptotic complexity idk

  • @adiaphoros6842
    @adiaphoros6842 Před měsícem

    Odd-and-even sort works well if it's parallelized such that every pair in an iteration is compared then swapped if needed at the same time.

  • @ninzwz
    @ninzwz Před 10 měsíci +4

    this video is awesome ! i watched both parts and everything is explained really well, i like the animation style, and they're pretty entertaining ! also a fan of the nb flag pin
    ill definitely check out your other videos too !

    • @Kuvina
      @Kuvina  Před 10 měsíci +1

      Thank you so much!

  • @omayoperations8423
    @omayoperations8423 Před 9 měsíci +2

    My dad knows Tim Peters, who made Timsort. It is based on insertion and merge sort, and is also stable. It's fairly fast.

  • @potzko2552
    @potzko2552 Před 9 měsíci +1

    a bit specific, but if you would like one less known joke algorithm I like is shell-shell sort where instead of insertion sorting the subsists, you recursively call shell-shell sort. its very slow, but has some neat properties like if you use 3 coprime gaps it drops down to N (log(N) ^2) time complexity (while still being slow)

  • @mikefochtman7164
    @mikefochtman7164 Před 10 měsíci +3

    I've always been fascinated by trees, so the tree sort is one of my favorites. But instead of red-black, I'd go for something like the AVL tree. But anyway, great video with some great graphics. Thanks so much.

  • @notexactlysiev
    @notexactlysiev Před 11 měsíci +1

    Fantastic as always :D

  • @neuroatypical6984
    @neuroatypical6984 Před 6 měsíci +1

    I came up with an algorithm as a joke but I think it is decent, grab the last item of the list and place it into an auxiliary array then compare with the new last piece if it is smaller place it to the left otherwise place it to the right repeat until the original list is empty then iterate the worst case scenario is something like; 10,1,2,3,4,5,6,7,8,9 it moves 10 8 times screwing up all the other numbers as it goes through it does resort some of them, I tested it by hand on a few small list with 10 worst case it took about 27 rounds a random 10 took about 10 rounds, worst case with 4 was 7 rounds, also with 4 it had about 10 cases with 1 round and 5 or 6 with 2 rounds

  • @AlbySilly
    @AlbySilly Před 9 měsíci +1

    The bitonic one reminds me of the pixel sorting video by acerola

  • @zoltantorok1189
    @zoltantorok1189 Před 8 měsíci +1

    17:07 There actually is a more practical implementation of the Quantum Bogo sort - just send the list to enough computers to make every single list randomization, then only return the result from the one which did it. This way you reduce the number of universes you need to one. Extremely effective, no scifi tech needed.

  • @aungkyawkhant321
    @aungkyawkhant321 Před 6 měsíci +1

    Amazing video!

  • @ferociousfeind8538
    @ferociousfeind8538 Před 9 měsíci +1

    16:02 What's notable about slow sort is it's (theoretically) the slowest sorting algorithm that makes progress- obviously bogo dort is slower, but that's because bogo sort is constantly resetting, and a faulty sorting algorithm that simply never stops is even slower than bogo sort, but it is also jot making progress. Slow sort is funny in that way. As inefficient as possible, eithout sitting down and twiddling your thumbs

  • @edouardgenetay5336
    @edouardgenetay5336 Před 9 měsíci

    impressive work!

  • @DamianYerrick
    @DamianYerrick Před 9 měsíci +1

    thumbs up for making baiai look like the subset of odd-even that it is

  • @edenasharpie
    @edenasharpie Před 11 měsíci +4

    FACTORIO BALANCER SORT- I MEAN BITONIC SORT

    • @electra_
      @electra_ Před 11 měsíci

      wait thats so true

  • @xavierdupont5772
    @xavierdupont5772 Před 9 měsíci

    That's awesome, and without the third part it will never be complete.

  • @cheshire1
    @cheshire1 Před 7 měsíci +1

    I was expecting patience sort to be "wait for cosmic rays to sort the array".

    • @Kycilak
      @Kycilak Před 4 měsíci

      That's kinda the miracle sort.

  • @dj_laundry_list
    @dj_laundry_list Před 9 měsíci

    The way he says "auxiliary" is off the hook

  • @nayutaito9421
    @nayutaito9421 Před 10 měsíci +2

    I like how Strand Sort is Stalin Sort except everyone is saved

  • @MichaelDarrow-tr1mn
    @MichaelDarrow-tr1mn Před 4 měsíci +1

    i think you can improve stooge sort a little by using 2floor(n/3) for the final step

  • @capsey_
    @capsey_ Před 9 měsíci +1

    Legal note for Quantum Bogosort: Since its killcount complexity is k(n!-1) where k = population of Earth it potentially violates geneva convention and is overall ethically dubious

  • @ivayuen223
    @ivayuen223 Před 10 měsíci +1

    Miracle sort plz. I mean at least the chance of an alien messing with it is an O(1). XD

  • @smaybius
    @smaybius Před 9 měsíci +1

    Exchange sort is also called sandpaper sort, and it's what I've been calling it

  • @Nick-pu8jg
    @Nick-pu8jg Před 9 měsíci +2

    reminds me of an algorithm i came up with which had O(n) best case but O(2^n) average and worst case time complexity, O(1) space, dont remember if it was stable

    • @Breuhh
      @Breuhh Před 9 měsíci

      But whats the akgorithm???

    • @Nick-pu8jg
      @Nick-pu8jg Před 9 měsíci

      while the list is not sorted, let n be the first element which is smaller than its predecessor (ie not in order), then rotate elements 1 to n to the right by one
      worst case for this is the sorted list rotated one to the right, so for four elements it would be 4 1 2 3, takes 2^(n - 1) steps with n elements

    • @Breuhh
      @Breuhh Před 9 měsíci

      @@Nick-pu8jg Wow id bet it looks cool when visualised. And i have an idea of optimising it (maybe). I thought of doing something like the cocktail sort, were you go foward and back. So what if this foward and back thing was implemented to your sorting algorithm, and the part that goes backward would ofcourse look for the first one that is bigger than its predecesor. Maybe this will work maybe not

    • @Nick-pu8jg
      @Nick-pu8jg Před 9 měsíci

      @@Breuhh never visualized it so would also be interested to see what thatd look like, could see if doing it back and forth works out later ig

  • @THE_GREMLINZ_OFFICIAL
    @THE_GREMLINZ_OFFICIAL Před 10 měsíci

    Bogosort can be improved into creating every possible unique distribution and deleting incorrect ones by trial and error and knowledge of the sorted state.

  • @tilnation14
    @tilnation14 Před 10 měsíci +3

    The wikipedia page on slowsort says it's stable, but the table on wikipedia says it is not. I do not know enough about these things to look into this discrepancy myself, however.

  • @goldenorb1210
    @goldenorb1210 Před 10 měsíci +3

    could you do miracle sort?
    it does nothing, but just checks in on the array once in a while, with no goal other than to wait for a miracle
    technically it has zero operations, but really takes forever

    • @tilnation14
      @tilnation14 Před 10 měsíci +2

      Table should look like n, inf, inf, memory: 1, stable: no

    • @swedneck
      @swedneck Před 9 měsíci

      you could do a variation of miracle sort where there is one arguably two operations: moving a piece of uranium next to the memory and retracting it once sorted.
      This way it could theoretically actually work on a human timescale

  • @itchykami
    @itchykami Před 10 měsíci +1

    I prefer the Stalin sort. It's also an N sorting algorithm, and is less destructive than the Quantum Bogo sort.

  • @terradasher
    @terradasher Před 10 měsíci

    I made my own sorting algorithm with terrible space complexity. It creates 2 auxiliary arrays with one containing the smallest element and one containing the largest element in the list. It then places each element in the list in the auxiliary list corresponding to the value closest to it (is it colser to the lowest or the highest value?) It then destroys the original list and runs recursively for each auxiliary list, being sorted when the length of each auxiliary list is 1.
    Has this a name already?

  • @discreaderror
    @discreaderror Před 10 měsíci +2

    13:00 Blue and pink on white. I see what you did there. 😏

  • @jimiwills
    @jimiwills Před 10 měsíci

    Brilliant ❤

  • @m_affiliates
    @m_affiliates Před 9 měsíci +1

    1:05 cool colours, is it a coincidence?

  • @zobososhizion6478
    @zobososhizion6478 Před 9 měsíci

    On the quantum Bogo sort: if the universe wasn't destroyed by suing the sort would it be possible to remove the timelines that are unstable as well?

  • @keonscorner516
    @keonscorner516 Před 8 měsíci

    8:23 auxiliary array

  • @friedchickenUSA
    @friedchickenUSA Před 9 měsíci

    hey. whenever you do part 3, could you include bogobogosort? its like bogosort but worse. thank u and cool video
    -liz

  • @PeterNerlich
    @PeterNerlich Před 11 měsíci +3

    Congrats on your graduation! 🎉

  • @stevenclark2188
    @stevenclark2188 Před 10 měsíci +1

    So strand sort is recursive Stalinsort?

  • @MrRyanroberson1
    @MrRyanroberson1 Před 10 měsíci

    9:30 instead of merging between ops, maybe try allocating an n^2 destination array and then do a sort on each column. repeat this by transposing the matrix over and over again, using gravity and then sorting until you have a sorted triangle of values. At each step, the greatest value will be in the corner which can be taken away. This is O(unpleasant).

  • @cringeSpeedrunner
    @cringeSpeedrunner Před 9 měsíci

    i kind of want bogo^n sort. If the degree is 1, it just does regular bogo sort, or else it sorts the first x values using bogo^(n-1) sort and if the next value isn’t sorted it shuffles the list and starts over
    I estimated it takes O(n!^x) for bogosort^x

  • @Randy14512
    @Randy14512 Před 10 měsíci

    Quantum Bogo: I need to sort thus list of 100 names, i guess i need to destroy 100!-1 universes to do it

  • @bobczech7774
    @bobczech7774 Před 8 měsíci

    17:17 quantum bogo using stalin sort

  • @RiedlerMusics
    @RiedlerMusics Před 10 měsíci

    this one is amazing too! see my other comment for suggestions for a part 3 ^^

  • @luggifer4360
    @luggifer4360 Před 9 měsíci +1

    Yeah the video was good, but they actually continued the music at the end and cut it off at a point that sounded good, which no other CZcamsr ever does.

  • @peterreichg
    @peterreichg Před 10 měsíci

    Can you do block sort/block merge sort/wikisort?

  • @sb-fu2zq
    @sb-fu2zq Před 10 měsíci +1

    what about grail sort?

  • @TrabberShir
    @TrabberShir Před 10 měsíci +1

    The biggest joke is that quantum bogo is a valid interpretation of some real quantum sorting algorithms.
    It is just that rather than destroying the universes that output incorrect sorts we duplicate the universe that outputs a properly sorted list enough times that a universe chosen at random will almost certainly be one where the result was correctly sorted. The various many worlds interpretations of quantum mechanics can get really strange.

  • @Nicoder6884
    @Nicoder6884 Před 10 měsíci +2

    You should probably also include Stalin sort and vacuous sort (which is just return [];) in part 3 as well

    • @android19willpwn
      @android19willpwn Před 9 měsíci

      Stalin Sort is basically just Strand Sort except you give up after one iteration

  • @HalfEye79
    @HalfEye79 Před 10 měsíci

    There is an easy way to make gnome sort faster: When the gnome finds a piece to swap, than write the index of that piece to a variable. Then, when the gnome is done swapping back, than he can just look into the index in that variable and go back there.

    • @LiamLimeLarm
      @LiamLimeLarm Před 10 měsíci +2

      im pretty sure that is just insertion sort lol

  • @partlyawesome
    @partlyawesome Před 8 měsíci +2

    wouldnt quantum bogo be O(1)? it's fixed time regardless of size of array, right?

    • @Kuvina
      @Kuvina  Před 8 měsíci +2

      I believe it takes O(n) time to check whether the list is sorted, but I'm not actually sure about how quantum hardware works.

    • @partlyawesome
      @partlyawesome Před 8 měsíci +1

      @@Kuvina Fair, I've always seen O(x) as the sorting time, from what I remember of university, so an algorithm that sorted a list in fixed time regardless of size would be O(1). I could totally be misremembering though.

  • @GustvandeWal
    @GustvandeWal Před 9 měsíci

    So underrated

  • @tomp6470
    @tomp6470 Před 10 měsíci

    It's time to go to bed,
    Welllllllllllll just one more video 😂

  • @NXTangl
    @NXTangl Před 10 měsíci

    I keep seeing Shatter Sort in visualizations. I have never heard of it.

  • @bobczech7774
    @bobczech7774 Před 8 měsíci +1

    Odd even looks cool. Agree?

  • @MichaelDarrow-tr1mn
    @MichaelDarrow-tr1mn Před 4 měsíci +2

    wait stooge sort is n^e?

  • @mlvluu9836
    @mlvluu9836 Před měsícem +1

    Why is exchange worse than selection?

  • @annethereseeltervag3566
    @annethereseeltervag3566 Před 9 měsíci

    What about fire sort?

  • @likrecelineation
    @likrecelineation Před 9 měsíci

    Why does no one test sorting algorithms on sets of numbers that aren’t in fixed increments or integers? I feel like a lot of sorting algorithms would only work on whole numbers that have no gaps.

  • @JiMMy-xd8nu
    @JiMMy-xd8nu Před 9 měsíci

    What about pigeonhole sort?

  • @mari-with-a-gun
    @mari-with-a-gun Před 6 měsíci +1

    ok but how does one destroy the universe?
    asking for... reasons

  • @dinoeebastian
    @dinoeebastian Před 4 měsíci

    I was hoping to see pigeonhole sort

  • @rgwl1tv69
    @rgwl1tv69 Před 10 měsíci +1

    thank you youtube algorithm for showing me this 😭🙏

  • @bobczech7774
    @bobczech7774 Před 8 měsíci +1

    5:36
    So just nlogn (n)-(√2)n
    ²

    • @Kuvina
      @Kuvina  Před 8 měsíci

      I never noticed it was so close to sqrt(2). But I looked into it, and I think the -1.415 actually comes from log_2(3) - 3.
      en.wikipedia.org/wiki/Merge-insertion_sort

  • @MichaelDarrow-tr1mn
    @MichaelDarrow-tr1mn Před 9 měsíci

    part 3?

  • @An_indonesian
    @An_indonesian Před 9 měsíci

    Gravity sort please

    • @Kuvina
      @Kuvina  Před 9 měsíci

      Gravity sort is in part 1!
      czcams.com/video/AAwYzYkjNTg/video.html

    • @An_indonesian
      @An_indonesian Před 9 měsíci +1

      @@Kuvina Now where is stalin sort?
      36159
      |
      \/
      369
      So if the number is in wrong order it will destroy the wrong number that is not in place

  • @vk8a8
    @vk8a8 Před 7 měsíci

    cheese!😁

  • @theeraphatsunthornwit6266
    @theeraphatsunthornwit6266 Před 9 měsíci

    Mom i cant sort anymore i am tired.

  • @firewizard9809
    @firewizard9809 Před 10 měsíci

    You missed the greatest sorting algorithm of all time, the Stalin sort

  • @dinoeebastian
    @dinoeebastian Před 4 měsíci

    how about you just set everything to 0, it's sorted, easy as that

  • @kremenskiyjr
    @kremenskiyjr Před 9 měsíci

    get a good mic

    • @FenrizNNN
      @FenrizNNN Před 9 měsíci +1

      Oooh boy you haven't been on the internet enough if you consider this a bad mic.

    • @RoxanneClimber
      @RoxanneClimber Před 8 měsíci

      that's the first hate comment of that type that I've seen

  • @thistree8257
    @thistree8257 Před měsícem

    you forgot stalin sort. Bad video.