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

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 พ.ค. 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
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 130

  • @Kuvina
    @Kuvina  10 หลายเดือนก่อน +19

    twitter.com/@Kuvina_4

  • @AJMansfield1
    @AJMansfield1 10 หลายเดือนก่อน +242

    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 10 หลายเดือนก่อน +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 9 หลายเดือนก่อน +73

    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 9 หลายเดือนก่อน +22

      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  9 หลายเดือนก่อน +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 9 หลายเดือนก่อน +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?

  • @byzatic8507
    @byzatic8507 10 หลายเดือนก่อน +103

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

    • @Kuvina
      @Kuvina  10 หลายเดือนก่อน +15

      Thank you so much!

    • @mxsteri0
      @mxsteri0 17 วันที่ผ่านมา +1

      YOU ARE GOD DAMN RIGHT

  • @mars5train601
    @mars5train601 9 หลายเดือนก่อน +43

    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 9 หลายเดือนก่อน +11

      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.

  • @ShadowKestrel
    @ShadowKestrel 8 หลายเดือนก่อน +15

    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 5 หลายเดือนก่อน +5

    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 9 หลายเดือนก่อน +16

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

    • @acters124
      @acters124 8 หลายเดือนก่อน +4

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

  • @Troloze
    @Troloze 8 หลายเดือนก่อน +3

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

  • @hexthe
    @hexthe 10 หลายเดือนก่อน +11

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

    • @temmie1662
      @temmie1662 9 หลายเดือนก่อน

      me too

  • @magicfoxgaming1500
    @magicfoxgaming1500 9 หลายเดือนก่อน +9

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

  • @petzel64
    @petzel64 8 หลายเดือนก่อน +1

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

  • @warriorsabe1792
    @warriorsabe1792 10 หลายเดือนก่อน +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 9 หลายเดือนก่อน +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

  • @Patricia_Taxxon
    @Patricia_Taxxon 3 หลายเดือนก่อน +2

    obsessed with the small stipulation that quantum bogo sort isnt stable

  • @thatoneguy385
    @thatoneguy385 8 หลายเดือนก่อน +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 8 หลายเดือนก่อน

      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.

  • @ninzwz
    @ninzwz 9 หลายเดือนก่อน +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  9 หลายเดือนก่อน +1

      Thank you so much!

  • @DamianYerrick
    @DamianYerrick 8 หลายเดือนก่อน +1

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

  • @space302
    @space302 9 หลายเดือนก่อน +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 8 หลายเดือนก่อน +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 10 หลายเดือนก่อน +4

    Yay Quantum Bogosort!

  • @mikefochtman7164
    @mikefochtman7164 9 หลายเดือนก่อน +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.

  • @igNights77
    @igNights77 10 หลายเดือนก่อน +8

    Can't wait for part 3!

    • @ClementinesmWTF
      @ClementinesmWTF 9 หลายเดือนก่อน +1

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

    • @m_affiliates
      @m_affiliates 9 หลายเดือนก่อน

      ​@@ClementinesmWTF they go by they/them btw

    • @ClementinesmWTF
      @ClementinesmWTF 9 หลายเดือนก่อน +1

      @@m_affiliates ok…noted. But also, wooosh

  • @aungkyawkhant321
    @aungkyawkhant321 6 หลายเดือนก่อน +1

    Amazing video!

  • @orbitros
    @orbitros 5 หลายเดือนก่อน +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.

  • @notexactlysiev
    @notexactlysiev 10 หลายเดือนก่อน +1

    Fantastic as always :D

  • @edouardgenetay5336
    @edouardgenetay5336 9 หลายเดือนก่อน

    impressive work!

  • @potzko2552
    @potzko2552 9 หลายเดือนก่อน +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)

  • @adiaphoros6842
    @adiaphoros6842 21 วันที่ผ่านมา

    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.

  • @omayoperations8423
    @omayoperations8423 8 หลายเดือนก่อน +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.

  • @xavierdupont5772
    @xavierdupont5772 8 หลายเดือนก่อน

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

  • @electra_
    @electra_ 10 หลายเดือนก่อน +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  10 หลายเดือนก่อน +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_ 10 หลายเดือนก่อน +4

      @@Kuvina call that ass-ymptotic complexity idk

  • @ultra824
    @ultra824 9 หลายเดือนก่อน +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...

  • @neuroatypical6984
    @neuroatypical6984 5 หลายเดือนก่อน +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

  • @zoltantorok1189
    @zoltantorok1189 8 หลายเดือนก่อน +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.

  • @edenasharpie
    @edenasharpie 10 หลายเดือนก่อน +4

    FACTORIO BALANCER SORT- I MEAN BITONIC SORT

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

      wait thats so true

  • @nayutaito9421
    @nayutaito9421 9 หลายเดือนก่อน +2

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

  • @AlbySilly
    @AlbySilly 9 หลายเดือนก่อน +1

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

  • @ferociousfeind8538
    @ferociousfeind8538 8 หลายเดือนก่อน +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

  • @THE_GREMLINZ_OFFICIAL
    @THE_GREMLINZ_OFFICIAL 9 หลายเดือนก่อน

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

  • @cheshire1
    @cheshire1 6 หลายเดือนก่อน +1

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

    • @Kycilak
      @Kycilak 3 หลายเดือนก่อน

      That's kinda the miracle sort.

  • @MrRyanroberson1
    @MrRyanroberson1 9 หลายเดือนก่อน

    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).

  • @capsey_
    @capsey_ 9 หลายเดือนก่อน +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

  • @jimiwills
    @jimiwills 9 หลายเดือนก่อน

    Brilliant ❤

  • @MichaelDarrow-tr1mn
    @MichaelDarrow-tr1mn 3 หลายเดือนก่อน +1

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

  • @Nick-pu8jg
    @Nick-pu8jg 9 หลายเดือนก่อน +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 9 หลายเดือนก่อน

      But whats the akgorithm???

    • @Nick-pu8jg
      @Nick-pu8jg 9 หลายเดือนก่อน

      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 9 หลายเดือนก่อน

      @@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 9 หลายเดือนก่อน

      @@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

  • @terradasher
    @terradasher 9 หลายเดือนก่อน

    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?

  • @dj_laundry_list
    @dj_laundry_list 9 หลายเดือนก่อน

    The way he says "auxiliary" is off the hook

  • @tilnation14
    @tilnation14 9 หลายเดือนก่อน +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.

  • @PeterNerlich
    @PeterNerlich 10 หลายเดือนก่อน +3

    Congrats on your graduation! 🎉

  • @smaybius
    @smaybius 8 หลายเดือนก่อน +1

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

  • @zobososhizion6478
    @zobososhizion6478 8 หลายเดือนก่อน

    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?

  • @ivayuen223
    @ivayuen223 9 หลายเดือนก่อน +1

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

  • @goldenorb1210
    @goldenorb1210 9 หลายเดือนก่อน +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 9 หลายเดือนก่อน +2

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

    • @swedneck
      @swedneck 9 หลายเดือนก่อน

      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

  • @friedchickenUSA
    @friedchickenUSA 9 หลายเดือนก่อน

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

  • @discreaderror
    @discreaderror 9 หลายเดือนก่อน +2

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

  • @Randy14512
    @Randy14512 9 หลายเดือนก่อน

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

  • @cringeSpeedrunner
    @cringeSpeedrunner 9 หลายเดือนก่อน

    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

  • @bobczech7774
    @bobczech7774 8 หลายเดือนก่อน

    17:17 quantum bogo using stalin sort

  • @stevenclark2188
    @stevenclark2188 9 หลายเดือนก่อน +1

    So strand sort is recursive Stalinsort?

  • @itchykami
    @itchykami 9 หลายเดือนก่อน +1

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

  • @keonscorner516
    @keonscorner516 8 หลายเดือนก่อน

    8:23 auxiliary array

  • @tomp6470
    @tomp6470 9 หลายเดือนก่อน

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

  • @peterreichg
    @peterreichg 9 หลายเดือนก่อน

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

  • @m_affiliates
    @m_affiliates 9 หลายเดือนก่อน +1

    1:05 cool colours, is it a coincidence?

  • @RiedlerMusics
    @RiedlerMusics 9 หลายเดือนก่อน

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

  • @Nicoder6884
    @Nicoder6884 9 หลายเดือนก่อน +2

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

    • @android19willpwn
      @android19willpwn 8 หลายเดือนก่อน

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

  • @partlyawesome
    @partlyawesome 8 หลายเดือนก่อน +2

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

    • @Kuvina
      @Kuvina  8 หลายเดือนก่อน +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 8 หลายเดือนก่อน +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.

  • @TrabberShir
    @TrabberShir 9 หลายเดือนก่อน +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.

  • @HalfEye79
    @HalfEye79 9 หลายเดือนก่อน

    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 9 หลายเดือนก่อน +2

      im pretty sure that is just insertion sort lol

  • @sb-fu2zq
    @sb-fu2zq 9 หลายเดือนก่อน +1

    what about grail sort?

  • @luggifer4360
    @luggifer4360 8 หลายเดือนก่อน +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 TH-camr ever does.

  • @mlvluu9836
    @mlvluu9836 18 วันที่ผ่านมา +1

    Why is exchange worse than selection?

  • @MichaelDarrow-tr1mn
    @MichaelDarrow-tr1mn 3 หลายเดือนก่อน +2

    wait stooge sort is n^e?

  • @GustvandeWal
    @GustvandeWal 9 หลายเดือนก่อน

    So underrated

  • @rgwl1tv69
    @rgwl1tv69 9 หลายเดือนก่อน +1

    thank you youtube algorithm for showing me this 😭🙏

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

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

  • @likrecelineation
    @likrecelineation 9 หลายเดือนก่อน

    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.

  • @annethereseeltervag3566
    @annethereseeltervag3566 9 หลายเดือนก่อน

    What about fire sort?

  • @JiMMy-xd8nu
    @JiMMy-xd8nu 8 หลายเดือนก่อน

    What about pigeonhole sort?

  • @mari-with-a-gun
    @mari-with-a-gun 6 หลายเดือนก่อน +1

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

  • @dinoeebastian
    @dinoeebastian 3 หลายเดือนก่อน

    I was hoping to see pigeonhole sort

  • @bobczech7774
    @bobczech7774 8 หลายเดือนก่อน +1

    Odd even looks cool. Agree?

  • @MichaelDarrow-tr1mn
    @MichaelDarrow-tr1mn 9 หลายเดือนก่อน

    part 3?

  • @bobczech7774
    @bobczech7774 8 หลายเดือนก่อน +1

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

    • @Kuvina
      @Kuvina  8 หลายเดือนก่อน

      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

  • @theeraphatsunthornwit6266
    @theeraphatsunthornwit6266 9 หลายเดือนก่อน

    Mom i cant sort anymore i am tired.

  • @An_indonesian
    @An_indonesian 9 หลายเดือนก่อน

    Gravity sort please

    • @Kuvina
      @Kuvina  9 หลายเดือนก่อน

      Gravity sort is in part 1!
      th-cam.com/video/AAwYzYkjNTg/w-d-xo.html

    • @An_indonesian
      @An_indonesian 9 หลายเดือนก่อน +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

  • @firewizard9809
    @firewizard9809 9 หลายเดือนก่อน

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

  • @vk8a8
    @vk8a8 6 หลายเดือนก่อน

    cheese!😁

  • @dinoeebastian
    @dinoeebastian 3 หลายเดือนก่อน

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

  • @kremenskiyjr
    @kremenskiyjr 8 หลายเดือนก่อน

    get a good mic

    • @FenrizNNN
      @FenrizNNN 8 หลายเดือนก่อน +1

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

    • @RoxanneClimber
      @RoxanneClimber 8 หลายเดือนก่อน

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

  • @thistree8257
    @thistree8257 15 วันที่ผ่านมา

    you forgot stalin sort. Bad video.