@@tiporial this comment could be a big hit in Europe
@LabyrinthFunkinDev6 ай бұрын
Everyone else: “Keep with the values.” Gravity Sort: “My name may have Gravity in it, but I defy *_a n y t h i n g I w a n t .”_*
@Apfelbaum4545 жыл бұрын
You: Gnome Sort The Guy she tells you not to worry about: Optimized Gnome Sort
@diceLibrarian4 жыл бұрын
You've just been G'Nome Sorted
@thisrecordingsessiontm36334 жыл бұрын
Her father: Odd-Even Sort
@Dinosaurs_with_laser_guns4 жыл бұрын
Lol 😹
@MrCubFan4154 жыл бұрын
(insert keemstar joke here)
@AtariWow4 жыл бұрын
Max Heap Sort
@roshambo41375 жыл бұрын
"Yo pass me the aux cord" "You better not play trash" *plays the In-Place Radix LSD Base 16 Sorting of reversed inputs with 2,048 numbers*
@alluseri5 жыл бұрын
timecode ples
@alluseri5 жыл бұрын
Timecode: 11:10
@GoldenGamerFox7272fromYT5 жыл бұрын
timestamp*
@lilmarionscorner5 жыл бұрын
Alluseri timestamp: 11:10
@souplover68454 жыл бұрын
My jam
@kunyoruyo5 жыл бұрын
18:20 "ok let me fix that... wait... no... what's going on??"
@estergallardo35945 жыл бұрын
This comment is not cool 😻💪👎🤙👎😽💪👎😻👎🙀👎😼🤞🎃👺👹
@michaleatsonionsforbreakfast4 жыл бұрын
Ixpantenco it's pancake sort
@hollyleaf39414 жыл бұрын
@@estergallardo3594 And you're cool I suppose?
@Pallid34 жыл бұрын
It's just robot
@dragonsdream42364 жыл бұрын
@@spedur3361 found the thirteen year old
@superscatboy4 жыл бұрын
Programmers in theory: look at all these options we have for sorting in different situations Programmers in practice: std::sort
@lychy6454 жыл бұрын
superscatboy truu
@benjaminschaaf4 жыл бұрын
Pigeonhole sort requires a limited range of integers (or equivalent). Using pigeonhole to sort a list containing just the numbers 1 and 1 trillion (1000000000000) requires 8TB of storage for example. It's great when you have a large set of integers in a small range, but that's almost never the case in practice.
@bathbombman4 жыл бұрын
quicksort when
@somenamelastnaammee524 жыл бұрын
_Arrays.sort();_
@firstnameiskowitz84934 жыл бұрын
16:27 when you have five minutes left to finish all the questions in your exam
@CJBox92 жыл бұрын
lmao that actually made me nose laugh
@victorfunnyman2 жыл бұрын
nose expiration ye lmao, it got quick so weirdly
@JetFalcon7106 ай бұрын
"Alright screw this. YEET" -Weave Merge Sort 2019
@nejitentenlee215 жыл бұрын
I finally understand how gravity sort works! It doesn’t sort by moving, it changes the value of the item in each place until it’s the right value for that place
@Musicombo5 жыл бұрын
Yup! Uses a lot of scratch space in memory to do all that subtracting/adding, as well.
@jacobw17805 жыл бұрын
What is min heap sort then?!
@devinandcarrietotaldrama5055 жыл бұрын
@@Musicombo how about counting sort?
@RubyPiec4 жыл бұрын
Can you give an example using numbers?
@uzairm38164 жыл бұрын
@@mrninjagon270 @chacha charlie well technically you can consider non descrete values to be discrete, but there is only 1 of each value. It would be really inefficient, not impissible for the counting sort
@caseyashworth80165 жыл бұрын
Smooth sort: is called smooth sort Also smooth sort: 5:24
@yonka-cola87924 жыл бұрын
Spiky
@louispipercarson96304 жыл бұрын
pointy sort
@givrally4 жыл бұрын
I was just about to say that ! It's literally the least smooth of all, maybe excluding heap sort variants.
@brayden2054 жыл бұрын
Casey Ashworth I think it’s called smooth sort due to how quick and clean the sort itself is
@raybeetle4 жыл бұрын
Ru²Kanga clean?
@wow-uf9ke5 жыл бұрын
pancake sort be like bruh
@dannadx38405 жыл бұрын
Man, not all sorting algorithms are designed to work with purely this type of data. Probably it was developed for something very specific
@dannadx38405 жыл бұрын
Yeah, it certainly is. I got time and checked. The only available operation is element flipping, so it just wasn't designed to work in this data type
@jr01theweeb5 жыл бұрын
18:20 The sort took 3 minutes
@-1f5 жыл бұрын
my mans be like bruh
@ilikeceral34 жыл бұрын
dannad x what the heck is pancake sort for then?
@ThomasBomb453 жыл бұрын
2:12 looks like a rotating 3D image. Nice
@draganahajdin4042 жыл бұрын
It does!
@err0rcube1152 жыл бұрын
Omg it does lol
@victorfunnyman2 жыл бұрын
true tho
@JetFalcon710 Жыл бұрын
Yeah, it's like watching someone rotating an empty box
@sawyermerkle88354 жыл бұрын
4:43 And here, you see a sorting algorithm sorting a reversed input to another reversed input...
@EJayy132 жыл бұрын
Min heap sort is just wrong.
@edwardclark67312 жыл бұрын
4:49 SIKE
@EJayy132 жыл бұрын
@@edwardclark6731 no
@Tekkwin5 жыл бұрын
is this how they made earthbound sounds
@Musicombo5 жыл бұрын
Hahaha :P
@jacobw17804 жыл бұрын
No.
@Pedro2707074 жыл бұрын
@@jacobw1780 r/woooosh
@jacobw17804 жыл бұрын
@@Pedro270707 O H N O
@trashmann10814 жыл бұрын
pk algorithm
@demonschnauzer15554 жыл бұрын
17:21 Introsort: Well, I just completed my task, better celebrate!
@mamf61755 жыл бұрын
Set Playback Speed to 2 to improve the algorithms
@dirtydan97854 жыл бұрын
big brain moment
@EJayy132 жыл бұрын
Or 720p60
@maurolionelmisjuegosyo9402 жыл бұрын
No
@LunarLambda5 жыл бұрын
poor pancake sort
@jacobw17804 жыл бұрын
18:22
@amethystt7274 жыл бұрын
It tried, but it just wasn't enough
@uklu4 жыл бұрын
Still faster than bubble sort
@panze-r2 жыл бұрын
It's a joke sort so its born to be trash unfortunately
@StormTheSquid2 жыл бұрын
It's just showing off.
@glitchy96134 жыл бұрын
26:34 So we've made the pattern just the reversed version of what the order is supposed to be, so its easier for you to sort them. Less Bogo Sort: Ok...
@JiMMy-xd8nu4 жыл бұрын
omg yes
@ojd91452 жыл бұрын
Yeah
@Coolmanerik_Z2 жыл бұрын
relatable
@dr.jacksonbright57233 жыл бұрын
Imagine using silly sort on a comically small set, thinking “maybe it’s silly’s time to shine,” only for your computer to freeze for seventeen and a half seconds before presenting a sorted set
@californium-25263 жыл бұрын
A set of 256: 17,5s A set of 2048: 1m41,6s or something
@Musicombo3 жыл бұрын
It doesn't work like that; it's not linear complexity. 2,048 items would probably take over a day.
@californium-25263 жыл бұрын
@@Musicombo Ah, the beauty of O(n^(log n)) (didn't know that it was that bad while I was making that comment)
@BigFatWedge Жыл бұрын
Silly Sort took 572 MILLION COMPARISONS to sort 256 items!! XD
@pencrows4 жыл бұрын
Patience Sort: get your popcorn and take a seat, we're gonna be here a while Also Patience Sort: 2 seconds
@edwardclark67312 жыл бұрын
thats terribly inefficient if it was real time
@colouur47784 жыл бұрын
9:57 wait that’s illegal
@EXA1024_4 жыл бұрын
ikr
@maxhaibara88284 жыл бұрын
Bogo Sort can be the fastest sorting algorithm, with the chance of happening of 1/n!
@DragoStar4 жыл бұрын
I may be late but is that 1 over n factorial or is it an excited 1 over n ?
@MineSomeCraftPoo4 жыл бұрын
@@DragoStar this is probably a joke, but hey, anyway it's n! since thats the total number of ways to order n elements
@almogz94864 жыл бұрын
@@DragoStar 1 over n factorial
@asheep77972 жыл бұрын
@@DragoStar 1 over nfactorial
@LindenF5 жыл бұрын
5:25 I’m sure that is not smooth it looks sharp
@screamsinrussian57734 жыл бұрын
no
@brayden2054 жыл бұрын
I’m pretty sure it’s called that due to the sporting not being sloppy or confusing as others
@edwardclark67312 жыл бұрын
smooth heaps: *am i a joke to you?*
@edwardclark67312 жыл бұрын
Future me: *Yes. Yes you are.*
@icebearpl1885 жыл бұрын
When bad sort gets to be one of the fastests
@jacobw17804 жыл бұрын
Good sort
@katalysator34314 жыл бұрын
well it doesnt use as much numbers so...
@Digephil4 жыл бұрын
2:50 my guinea pigs when I'm cutting bell peppers.
@Zyn_Shi4 жыл бұрын
I’m glad someone had the same idea!
@ojd9145Ай бұрын
yeah
@fachriem4 жыл бұрын
i really love 10:36 so much! easy algorithm and yet best performance~
@californium-25263 жыл бұрын
Ah yes. 573 microseconds ERT, just behind of TimSort (391 microseconds ERT, 16:32) It's a storage and memory (?) hog though.
@jeremyaster7470 Жыл бұрын
pigeonhole sort just built different
@entredus791011 ай бұрын
elements 1 and a really, really big number
@Lonely_Wiz4 жыл бұрын
21:34 flight of thr bumblebee
@chimaudeh51594 жыл бұрын
Love how the smooth sort (5:24)is in no way smooth
@bingobeego Жыл бұрын
LMAO
@JetFalcon710 Жыл бұрын
Smooth sort actually roughened up the surface of the triangle
@diamboy5 жыл бұрын
Base 16 looks like it’s trying to say something
@pittagiiya5 жыл бұрын
Sounds like it's trying to say something; not sure whether that's what you meant to say or just what I think
@jonasferraz5 жыл бұрын
11:11
@MrtinVarela5 жыл бұрын
Batcher's bitonic: *"yes, but actually... no"*
@mateuszodrzywoek86584 жыл бұрын
it does make some pretty fire beats if i say so myself
@NXTangl Жыл бұрын
That's just what happens when you're literally the opposite of adaptive!
@jyosongurung5583 Жыл бұрын
That’s at 12:58
@jyosongurung5583 Жыл бұрын
Also what the $%#&?????
@Fireball7428 Жыл бұрын
And then there's Pancake sort at 18:20.
@aether-music4 жыл бұрын
16:24 "Nope, I'm done"
@ZA-mb5di4 жыл бұрын
17:21 sounded like All Star for a second
@fridaykitty4 жыл бұрын
nice 69th like
@pannesterpants30084 жыл бұрын
Omg ur right
@galimantis4 жыл бұрын
10:29 _What._
@twoarrow91344 жыл бұрын
“yeet”
@thatcrystalpie4 жыл бұрын
The algorithms have learned to count
@lillie30294 жыл бұрын
Galimantis 10:37 *
@wenirlicker68084 жыл бұрын
Count Count Sort
@JNSStudios4 жыл бұрын
H O W
@sillybeanthing3 жыл бұрын
I like it when the red line is stuck focusing on one point like it's working super diligently to sort the things in the area, then it goes to another place and starts again
@ninja32124 жыл бұрын
TimSort be like: "Y'all mind if I just flip the array?"
@californium-25263 жыл бұрын
Est. Real Time: 391 microseconds.
@Hjerpower4 жыл бұрын
I like how min heap sort went through the whole heapification process to only end up back where it started
@BigFatWedge Жыл бұрын
See, YOU can see all the items at once , but the algorithm cant. It can only compare two items at a time. To us, it just looked like Min Heap Sort turned a reverse array back into a reversed array. But to Min Heap Sort, it turned an array of didn't know was reversed, to an array it DID know was reversed.
@deffinatalee76994 жыл бұрын
12:58 Batcher needs to make up his mind
@FusionArmorX4 жыл бұрын
12:27 The sound of 100, 500, and then 1000 point enemies being destroyed.
@TheEgglet4 жыл бұрын
2:17 it looks like a hole in a box lol
@Obviary5 жыл бұрын
3:02 if you listen closely it almost sounds like megalovania
@attack544 жыл бұрын
Obviary god damnit take my like
@amogus73 жыл бұрын
42th
@quillenkai67144 жыл бұрын
I thinks it's absolutely amazing that bogo sort with 8 inputs took nearly 10x as long (estimated) as quicksort with 2048 inputs
@Hasde_dfs2 жыл бұрын
And that’s without even talking about pigeonhole sort
@kingsley.2 жыл бұрын
@@Hasde_dfs tim sort
@rexperverziff Жыл бұрын
@@Hasde_dfstime stamp?
@locrianphantom3547 Жыл бұрын
Wait til you see BOGOBOGO sort…
@bogdan_ostaficiuc Жыл бұрын
@@locrianphantom3547with 10 inputs!!!!
@Jack-lp3gc5 жыл бұрын
so is no one gonna point out that min heap sort did a bunch of stuff to the inputs only to get right back to where it started and then flip it around
@ATtiny13a-PU5 жыл бұрын
11:10 - is drop from dubsteb
@taureon_4 жыл бұрын
which
@screamsinrussian57734 жыл бұрын
dubsteb
@EdKolis2 жыл бұрын
I like the ones that don't even maintain the integrity of the original data but somehow put it all back at the end, like the gravity sort
@mcbattery8565 жыл бұрын
Where's that comment with the list of sorts?
@busher60044 жыл бұрын
Gone Reduced to atoms
@marcosgreg99834 жыл бұрын
Seems not sorted yet
@MishaG4mer5 жыл бұрын
Counting sort: I am speed Patience sort: You are quick, But im faster
@MishaG4mer5 жыл бұрын
Time Sort: Hold my beer
@MishaG4mer5 жыл бұрын
TimSort: Try me bitches
@finniko19955 жыл бұрын
Pigeonhole Sort: Boom, done! What now?
@MishaG4mer5 жыл бұрын
Pancake sort: YOU DARE OPPOSE ME MORTAL Hold on gotta scan the algorithm 69420 times before confirming its sorted
@ConsarnitTokkori5 жыл бұрын
pancake sort: merry christmas 2016!
@buurk4 жыл бұрын
11:11
@Memerath3 жыл бұрын
the time, the sort, the mathematical perfection of it all
@takedLLC5 жыл бұрын
Is no one going to mention that at one point gravity sort had all of the numbers the same?
@ironoat5 жыл бұрын
You should look up gravity sort. It's a really cool concept. You could build a physical system using it to sort in linear time. It is also called bead sort
@Choinkus5 жыл бұрын
It's pretty cool but unfortunately it's not very efficient
@dezcubing58445 жыл бұрын
I saw from another comment that it changes all the values until its the right value for the place
@cephalosjr.18354 жыл бұрын
Choinkus Gravity sort is only good on specialized hardware. Of course, if you implement it on hardware, it’s very fast.
@takedLLC4 жыл бұрын
@@ironoat I know
@bigloudnoise2 жыл бұрын
I'm surprised Pancake Sort didn't see the obvious solution of just flipping the entire stack once to get it in the correct order. I presume there's a limitation to the algorithm (which I am unfamiliar with) that forces it to start inside the stack, thus preventing it from just flipping the whole thing in one shot.
@BigFatWedge Жыл бұрын
Pancake Sort searches for the largest item in the remaining list, and then reverses the part of the list ranging from the first item in the list to the largest item. For example, if the largest item is the 50th item, reverse the order of the first 50 items. This puts the largest item(in the remaining list) at the front of the remaining list. Then you reverse the ENTIRE remaining list, putting the largest item in the last position in the remaining list. Then redesignate the last(largest) item as part of the sorted list. Then do it again on the remaining list, until it reaches a length of 1 item. It's basically Selection Sort, but made much worse for no reason. So, in this case, on the first iteration, it finds the largest item(already the first, as the list is in descending order), then reverses the list from the first item to the largest item(since this is a list of 1 item, nothing happens), then reverses the entire list, which sorts it. But the algorithm doesn't check if the list is sorted, it just searches for the largest item in the remaining list. Because it reversed the entire array, putting it in ascending order, the largest element in the remaining list is at the end, making the algorithm reverse the entire list to put the largest item at the beginning, then reverse it AGAIN to put it at the end and thus sort it. But it isn't checking, every time it reverses the array, if it's sorted. In short: although it sorts the list in "one shot," it doesn't KNOW if did that, cause it didn't check. Hope that answers your question.
@SKyrim1904 жыл бұрын
Some of those look to me like (1) read the list (2) print the sorted list is the whole algorithm. I can not even begin to guess what is going on. Also, silly sort looks like a merge sort that got neurotic and is afraid the list might change when he is not looking
@ThomasBomb453 жыл бұрын
They use auxiliary data structures. The visualization really should show them
@FunctionGermany5 жыл бұрын
Batchers Bitonic Sound be like: "now i know this might look like the exact same thing but just hold on for a bit"
@niku41544 жыл бұрын
Nobody: Old PCs when you put in a CD: 18:13
@wladfan3 жыл бұрын
Whoops! You have to put the CD in your computer
@Guinea.Pig-Gaming5 жыл бұрын
odd-even sort looks like a 3d structure changing shape.
@DogeisCut4 жыл бұрын
It does tho
@sameendusk26235 жыл бұрын
16:32 timsort's not having any of this reverse bullshit
@Caseofgames4 жыл бұрын
9:57 Perfectly balanced, as all things should be.
@thatonecountryballanimator2 жыл бұрын
9:58
@Caseofgames2 жыл бұрын
@@thatonecountryballanimator It's already unbalanced at 9:58.
@thatonecountryballanimator2 жыл бұрын
Whoops, sorry.
@ilikeceral34 жыл бұрын
Why am I watching sorting videos when I don’t even know math
@thatcrystalpie4 жыл бұрын
Pigeonhole sort is like "I SEE THROUGH THE LIES OF THE *reversed inputs"*
@notquitebleu4 жыл бұрын
Everyone gangsta til odd-even sort makes the sorting 3D
@Giyga3 жыл бұрын
I find pancake sort very funny when it starts swapping rapidly towards the end
@MayorVideo4 жыл бұрын
7:52: the best one
@mikaroni_and_cheez4 жыл бұрын
Merge sort is kind of how people sort things, you group similars together and then pick out the similarities to those groups and so on until 0 to 100 are lined up
@mistycremo93012 жыл бұрын
I wish you would do a bit of color coding for what state the sorts are actually in- say green for "known to be sorted", and maybe separate colors for each layer of heapsort's heap
@RichConnerGMN Жыл бұрын
nice pfp
@IronBoy-hf2lp5 жыл бұрын
@ Pancake Sort: BRUUUUH WHAT ARE YOU DOOOOOOING
@nathanzotov11604 жыл бұрын
batchers bitonic be like: Ok yeah, go there, uh huh, wait stop! Go back, go back. go right there. Yeah. WAIT NO COME BACK HERE!
@relt_4 жыл бұрын
i love how batcher's odd-even merge sort just *transitions* the values
@AlisterCountel5 жыл бұрын
This made me curious, is there an algorithmic way to find the specific “worst case scenario” for any given sort? Between this and the already sorted inputs, it certainly seems like there are some non-random arrangements which take excessive amounts of time compared to a normal sort.
@Musicombo5 жыл бұрын
It's probably more often that people have just come across worst cases for these sorts, but I'm not sure about an algorithm. I would be curious about that, too!
@erikprantare6965 жыл бұрын
I'll try to prove that there doesn't exist a general algorithm for that, in a similar way that you prove that there is no general way to solve the halting problem: Assume that there is an algorithm A(s, i), that tells you whether an input i is the worst case input for a given sorting algorithm s Construct sorting algorithm S, that given A(S, i), will sort using quicksort if i is the worst case input, and otherwise use bogosort (or any other algorithm that is going to be slower than quicksort) But, this means that for I = worst case input for S, A(S, I) /must/ say that I is not the worst case. Therefore, there exists no general algorithm A that can determine if a given input is the worst case scenario for a given sort. I hope this makes sense :)
@Musicombo5 жыл бұрын
@@erikprantare696 That does, thank you so much!!
@slycordinator5 жыл бұрын
"Between this and the already sorted inputs, it certainly seems like there are some non-random arrangements which take excessive amounts of time compared to a normal sort." While that seems true, there are exceptions. For instance, insertionsort is faster for "nearly-sorted" and "completely sorted" lists than for ones that have random data. In fact, it's why one method used to speed up something like quicksort is to simply do nothing when partitions are fairly small, then when that whole thing completes, run insertionsort on that mostly-sorted list. edit: What I'm getting at is that the same non-random arrangements don't affect each sort the same way.
@Fera-gr5mm4 жыл бұрын
Brute-force algorithm might go through all n! permutations and measure it manually.
@52.yusrilihsanadinatanegar794 жыл бұрын
Batcher's Bitonic Sort "wait, let me merge it in" "oh wait, there is a problem" "ok then, i'll reverse it back to fix that problem" "oh wait, it's the input" "let's merge it all to-" "r e v e r s e a n d m e r g e"
@EchoFaustMusic3 жыл бұрын
I always found it strange why block sort algorithm seem to, for lack of a better word, carry numbers along while sorting.
@Musicombo3 жыл бұрын
That's their internal buffer!
@AntonDiaz7 Жыл бұрын
18:21 Pancake Sort: I can finish it fast but I'd prefer to torture it.
@shoobfloof225 жыл бұрын
Time sort: Estimated Real Tome: 8,192 ms That’s only 8.1 seconds, but it feels like eons compared to the rest of the sorts... Edit: never mind. Silly sort and slow sort killed it. Lmao.
@theairaccumulator71445 жыл бұрын
Yes, because time sort works by waiting in many threads at once.
@jacobw17805 жыл бұрын
Tournament sort?
@lithiumwyvern_4 жыл бұрын
That's because time sort isn't a real sorting algorithm. As the air accumulator said, time sort is just a horrible abuse of the system's scheduler - it creates one thread for every element, makes them wait (value of the element × 4) milliseconds then push the element onto the end of the output array, then insertion-sorts that array.
@MauveDash4 жыл бұрын
Slow sort
@nick17524 жыл бұрын
@@lithiumwyvern_ ngl that's kinda genius
@Drachi-4 жыл бұрын
2倍速で聴くとめちゃくちゃ気持ちいいです! I love listening to it at double speed.
@tizianodellafazia23094 жыл бұрын
Ahhh yes it's this time of the year.... youtube strikes again with that algoritm stuff
@nordern14 жыл бұрын
The algorithm wants to show off its family
@pestermaster76172 жыл бұрын
Batcher's bitonic sort: shakes a bit here and there, decides that it is wrong, Puts it back, and then decides that it prefers the list sorted.
@brandonklein14 жыл бұрын
Really shows the difference between n^2 vs nlog(n)
@h0verman5 жыл бұрын
its cool how with starting reversed some sorts approach a fractal pattern initially
@zapdragon59425 жыл бұрын
Then there's Odd-Even
@icebearpl1885 жыл бұрын
Base16 made some sort of rbg boss battle theme intro
@kirbycreep5 жыл бұрын
@@icebearpl188 some *_sort_*
@Remon_4 жыл бұрын
5:26 sounds like pulling off a long piece of plastic on a new surface
@ONS04035 жыл бұрын
Quick sort is the one true god... considering its performance and how quick it is to write
@romajimamulo4 жыл бұрын
Except this is actually the worst case scenario
@Fera-gr5mm4 жыл бұрын
@@romajimamulo Only if it was choosing the last/first element. In this case, the middle element is the median, so this is pretty effective.
@romajimamulo4 жыл бұрын
@@Fera-gr5mm That is true.
@entropic-decay4 жыл бұрын
odd-even sort: *just turns it around in 3D*
@jamesallen742 жыл бұрын
No matter what the sorting video is, Radix LSD Base 4 NEVER fails to impress me in terms of awesomeness and beauty. :)
@Fireball7428 Жыл бұрын
And it also sounds great.
@What-thaW5 жыл бұрын
5:26 Cha cha real smooth
@timetree41244 жыл бұрын
5:23 Selection Sorts: Smooth Sort Looks: *Rough*
@wymarsane7305 Жыл бұрын
4:50 "I worked so hard, and got so far But in the end, it didn't even matter"
@Scudmaster11 Жыл бұрын
7:45 patience sort be like
@Poopooproductions13 жыл бұрын
11:11 drops sick beat
@SHIN2025_official3 жыл бұрын
5:11 Weak heap sort: I AM NOT WEAK
@sumandbastitv26062 жыл бұрын
Strong heap sort?
@GoldenGamerFox7272fromYT5 жыл бұрын
imagine you had 8 pencils and had to do 125984 comparisons, 585800 swaps and 1171600 writes to main array to sort them from smallest to biggest. thats the bogo sort. (27:01)
@CatFace8885 Жыл бұрын
Pancake sort constantly reversing the already sorted array over and over not knowing any better is such a moment
@Gamesmarts1945 жыл бұрын
“Impractical sorts” lol
@raine68134 жыл бұрын
12:57 "maybe if i put this he- no that dosent work. maybe if i did thi- no that dosent work either. maybe if i jus- oh god now i gotta start all over..."
@gameborge2 жыл бұрын
counting sort when pigeonhole sort walks in
@pinguin48984 жыл бұрын
heap sort is extremely powerful here because it's already all in a heap
@MsZiomallo4 жыл бұрын
Pigeonhole sort (10:37): *I AM SPEED*
@MaximG.4 жыл бұрын
11:14 - this reminds me of Metroid Prime title screen for some reason
@littlelamp1003 жыл бұрын
22:31 windows trying to search for a file
@aaplies8879 Жыл бұрын
I really have to appreciate min heap sort (4:38) taking all the extra time to reform the input then flip it.
@The4stro4 жыл бұрын
stable quick sort was like trying to start an engine, and it finally starting
@NStripleseven4 жыл бұрын
Batcher's bitonic sort undoes itself many more times than is necessary. 13:00
@KingofJ955 жыл бұрын
Silly Sort: Who are you? Merge Sort In Place: I'm you, but stronger.
@LandonM_Earth2 жыл бұрын
0:33 looks like a reversed image of the original zooming out of existence
@korriannavanheart8911 Жыл бұрын
Dreams be like: you must go up these stairs The stairs:
@grande19002 жыл бұрын
It's called pancake sort because it looks and sounds like a frozen pancake spinning like a coin
@nouche2 жыл бұрын
Is it me or did Bogo Sort get quite lucky there?
@sharpesttoolintheshed4924 жыл бұрын
Gravity sort be like: 1) have values to sort 2) look at them 3) ??? 4) profit
@californium-25263 жыл бұрын
A slow one though. Pigeon hole sort, counting sort and TimSort would have fit.
@nouche2 жыл бұрын
Quick Sort is known to be pretty bad in this case, as well as when it’s already pretty much in order. On the contrary, Heap Sort(s) are known to be pretty darn good in every case.
@BigFatWedge Жыл бұрын
Well, a reversed array is necessarily a heap, so Heap Sorts already have half their work done for them in this case. I imagine they don't do so well if the array is sorted/is close to being sorted, because an array in ascending order is what might be dubbed an anti-heap--no part of the heap is correct. Quick Sort only struggles because usually, it's programmed to just choose the last item as the pivot, which is bad If that's the biggest/smallest item. If you code it to just pick a random item from the list as a pivot, though, it performs just as well as any other time. Also, Heap Sort is the worst O(n log n) sort on average, and Merge Sort does better in "all cases." So you're wrong .