I like how after it announces that quick sort won, it just lets bubble sort slowly and pitifully complete its sort.
@ninthpayloader04656 жыл бұрын
Bubble sort is so short sighted he didn’t even see that he lost
@larrykelly85084 жыл бұрын
He doesn’t have ears
@Muhammad-sx7wr4 жыл бұрын
He might be deaf, he might be blind, but he sure as heck ain't dumb.
@cosmq2 жыл бұрын
pure gold comment 😂😂😂😂😂
@ChrisSparks-zp8ue6 ай бұрын
I think if quick sorting loss they won’t know either
@Johnny_Franco-12_Scratch4 ай бұрын
That’s… actually true.
@ImmacHn11 жыл бұрын
Bubble sort will always have a special place in my heart :')
@smortboi23743 жыл бұрын
When u necropost BP
@ImmacHn2 жыл бұрын
@@smortboi2374 nani?
@multiply672 жыл бұрын
@@ImmacHn you're a man
@CrittingOut2 жыл бұрын
me too
@ziskador9 жыл бұрын
omg i felt so sorry for bubble sort robot at the end :(
@marquizzo8 жыл бұрын
+ziska dor Lights are out, everybody's cleared out of their seats and gone home. The janitor is about to ask him to hurry up so he can clean the floor.
@ziskador8 жыл бұрын
+marquizzo so sad :(
@ProducShuns8 жыл бұрын
+marquizzo He says nothing. Keeps on sorting. Janitor mops around him. Doors open the next day. The celebration finally sounds as he clicks in his last comparison.
@frtard8 жыл бұрын
I felt sorry for it the entire time. Just think about how many balls he had so close to his face...
@Luffi987 жыл бұрын
imagin bogo sort robot :(
@razerage17 жыл бұрын
bubble sort be like "I hate my life"
@krzywy88736 жыл бұрын
xD
@taiyihanle6 жыл бұрын
Bubble Sort be like "I'm doing my job! ^o^ you go here, you go there... and there you go!"
@cboom32055 жыл бұрын
Bruh this is me at me job watching everyone leave as i stay behind to close T_T
@magicstix0r5 жыл бұрын
And we hate bubble sort's life too...
@aemiil57435 жыл бұрын
bogo: hand me the gun
@granceroblast10 жыл бұрын
This has to be the best educational video on sorting I have ever seen!
@luisandre27506 жыл бұрын
I thought this too. It is amazing seeing how even when you code using comparisons (using if/for/switch) you could have the same output using a more developed algorithm much more quickly.
@randomman74076 жыл бұрын
Hungarian dance sorting is much better Check it out!
@mathguy37 Жыл бұрын
9 years later we got better
@NachitenRemix Жыл бұрын
@@luisandre2750i dont understand what u say lmfao, yes computers use if and? That takes some time, its not literally instantanious, it never is, thats why you need optimization and that is what this sorting algorithm does
@hendroyohanes42956 жыл бұрын
The moral here is to never give up even when you lose
@reda291005 жыл бұрын
But you never lose if the match never ends!
@MeistrosLabor4 жыл бұрын
The bubble Sort Robot still came to a final Solution even if it took years :) its becauz he didnt gave up
@trenvert1234 жыл бұрын
Trump
@uwu.-.58732 жыл бұрын
Bubble sort is me 😔
@scoutintime Жыл бұрын
the moral here is that bubble sort fucking sucks lmao
@brainboy53 Жыл бұрын
I like that quicksort isn’t annoying bubble sort and letting him just do his thing. Such a nice guy
@TomTom-gy7ov8 жыл бұрын
Legend has it that the bubble sort robot is still sorting
@DirkIronside7 жыл бұрын
Now imagine if it was a Bogosort robot!
@Anohaxer7 жыл бұрын
ORST is the alphabetically sorthed correct order
@Anohaxer7 жыл бұрын
By going: Quick Sort Pivot: R S>R = S to the right (Memory) | [S]O T T>R = T to The right | [S]O T S
@paulcasanova19097 жыл бұрын
Tom Tom That would be the Bogo sort bro
@Anohaxer7 жыл бұрын
Lets just do merger sort then SORT = 19-15-18-20 [19][15][18][20] 19>15 [15-19][18][20] 18
@sharpnova24 жыл бұрын
bubble sort: what is my purpose? me: to sort in O(n^2) bubble sort: omg
@mate_on_f79164 жыл бұрын
Yes
@Muhammad-sx7wr4 жыл бұрын
Bubble sort be like, "I thought bigger was always better."
@musicexams52582 жыл бұрын
Insertion sort intensifies
@slowmotion23004 ай бұрын
I thought bubble sort would do 10^2 comparisons
@bitonic5893 ай бұрын
@@slowmotion2300Bro thought bubble sort had constant complexity 💀💀💀
@realeques10 жыл бұрын
so awesome , we spent 45 minutes in college for what we could have learned through this video
@Muhammad-sx7wr4 жыл бұрын
Interestingly I discovered bubble sort without being taught it. Only later finding out what it was called.
@MikehMike013 жыл бұрын
@@Muhammad-sx7wr most people could come up with bubble sort, insertion sort, or selection sort on their own
@Muhammad-sx7wr3 жыл бұрын
@@MikehMike01 Things just seemed a bit harder in the 90s and Google was not as reliable. I know however that most people can make these discoveries on their own. I'm just reminiscing with these people how great it felt and yet how far from the mark we were.
@neolord50pro77 Жыл бұрын
@@MikehMike01and to discover things like quicksort or heapsort only through intuition it would require to be an astute mathematician I think.
@MikehMike01 Жыл бұрын
@@Muhammad-sx7wr those three are the O(n²) algorithms which aren’t very good but are easily understood
@legendgames1282 жыл бұрын
Making computers look cute while also teaching a great concept in a lot of web development? Win-win! Also, noting how the computers are short-sighted is a very good way of describing how computers actually do operations.
@Pigeoncraft10 жыл бұрын
What about a bogo sort :P
@derekmallory9859 жыл бұрын
***** ... or the next level : 3 "Bogobogosort is an algorithm that was designed not to succeed before the heat death of the universe on any sizable list. It works by implementing the bogosort on the first two elements in the list. If they are in order, then it bogosorts the first three elements, and so on, increasing by one until the entire list is sorted. Should the list not be in order at any point, the sort starts over with the first two elements."
@v000000000000v9 жыл бұрын
Derek Mallory there's always a chance that it will sucessfully sort tho!!
@ScipiPurr8 жыл бұрын
Don't forget the king of all inefficient sorts: Worstsort.
@Anohaxer7 жыл бұрын
yeah? well in a comment above im trying to bogo sort the word "sort" alphabetically. I do it in batches of 10, random data gotten from www.superkids.com/aweb/tools/words/scramble/ and now going to my 4th batch
@Anohaxer7 жыл бұрын
kzbin.info/www/bejne/l4m7iIuwatd5bJY&lc=z12xy3dixtf2tn5cg223yfyzxkqdztugn04.1498860895564993 BOGO SORT BRIEF EXPLANATION AND 49-TRY EXAMPLE WITH 4 INTEGER (CHARACTER) VALUES
@udiprod12 жыл бұрын
Thanks! Currently I'm busy with two other videos (coming up soon), but I appreciate the interest in more sorting videos. I hope to get around to it soon.
@katlicks4 жыл бұрын
I never knew how Quick Sort managed to have confidence in it's placement without going to the ends first. That cleared it up really easily.
@angelsalvadorcruz7484 Жыл бұрын
this is the cutest video i have ever seen in my entire life, after watching so many boring videos trying to explain quick sort, this is a very welcomed treat
@galzigler7 жыл бұрын
You should make a visualization for all existing sorting algorithm. Your videos are really helpful, and the best that could be find online to explain how the sorts work.
@traso566 жыл бұрын
different but there you go kzbin.info/www/bejne/oYG1cmONZtB4eck
@solomonprenevost46995 жыл бұрын
Gravity sort
@anonymoususer98375 жыл бұрын
First off, curse you for having a right-to-left-language username, because replying to those screws up your left-to-right typing if you include it. Second, there are way too many sorting algorithms to explain. Many of them are hybrids (like Timsort), many don't work on these colored balls (like Radix Sort), and many are esoteric (not intended to be actually useful, like Bogosort and Slowsort). That and some of them are just *weird* (like Gravity Sort).
@kenji48618 жыл бұрын
Great video. Kids nowadays have so much good resource
@moogyboy66 жыл бұрын
Those have got to be the cutest robots I've ever seen. Look at 'em sort!
@Chr0nic1er7 жыл бұрын
I am pleased at how accurate the video is. It didn't just count comparisons only, but moved the robots according to performed actions (cycles as it were).
@udiprod11 жыл бұрын
It places on the ledge a ball from the left side that is designated to be swapped with a ball from the right side. Usually when two elements are swapped, one of them is placed in a temporary location. What's a bit unusual here, is that the element is placed in a temporary location before selecting the ball it should be swapped with. The reason is that the robot has only one free hand (the other one holds the pivot), and putting the ball on the ledge saves moves later when the swap takes place.
@UntakenNick11 жыл бұрын
When I grow up I want to be a sorting robot..
@markhesse45106 жыл бұрын
Quicksort or Bubblesort or Bogosort?
@manuelsputnik4 жыл бұрын
How inspirational.
@devrafed4 жыл бұрын
Are you a grown up now? What are you doing now?
@SkoczekPrRO4 жыл бұрын
@@devrafed he is sorting parcel in postoffice so he is not exactly the robot but some kind.
@Muhammad-sx7wr4 жыл бұрын
You need to sort yourself out first.
@nki111-pa Жыл бұрын
Props to bubble sort for never giving up. A true inspiration!
@MinecraftLD105 жыл бұрын
I want to hug bubble robot, he deserves it.
@thatalbeeguy4 жыл бұрын
KZbin in 2012: Oh, look at him, he is learning algorithms! I should recommend it to him some time later. KZbin in 2020: eah! This just the right time!
@figoprovenza95132 жыл бұрын
Someone has to do an edit of this video with the "The Rock stare" everytime the announcer say balls
@Shimo8_ Жыл бұрын
This is the only video that explained quick sort in a way I can understand
@nalankadi16544 жыл бұрын
Bubble sort's perseverance is truly inspiring.
@benmoreaucohen2 жыл бұрын
Dude I mean why or how, this videos are so old and they are so cool, the quality is genuinely amazing, I love your videos and the educational content they bring, make more!
@thowaway247679 жыл бұрын
Why don't you give the robot glasses?😊
@TheTurtle-ui4ou7 жыл бұрын
Well, it wouldn't have vision problems anymore, now would it?
@winandfx7 жыл бұрын
Yeah, Glasses Bubble Sort is the fastest. Scientists should invent it.
@sonicfire90006 жыл бұрын
I see what you did there...
@youtubeismycity5 жыл бұрын
@@miksuko omg
@MinecraftLD105 жыл бұрын
jeffrey Presley Well who designed their vision sensors so near sighted in the first place? *If your into robotics at all, you’ll get this.*
@davieskamanda6622 Жыл бұрын
This is the best educational video I've ever seen. I think using numbers in place of the balls could make the whole process more clear, for in the competition it is difficult to follow what is going on.
@sapitron11 жыл бұрын
What a painstaking process should have been to animate that contest. hats off.
@AquaDavie5 жыл бұрын
The lore behind all these sorting videos I’ve been binge watching
@colossalgamesofficial79474 жыл бұрын
Super relaxing
@AsbjornGrandt10 жыл бұрын
Bubble Sort cheated at the end. It didn't compare the last two...
@udiprod10 жыл бұрын
It's actually not cheating. Bubble sort has an optimization that if in a certain iteration all the pairs are in order, then it concludes no further iterations are needed. It most likely happens in the one of the final iterations, but with luck it can happen early. If you give bubble sort an already sorted list, it will stop after one iteration. Therefore if bubble sort and quick sort competed over on already sorted list, bubble sort would win.
@AsbjornGrandt10 жыл бұрын
udiprod I didn't suggest that it should have run an additional iteration. It just never compared the last two balls, before marking them sorted. It checked the second and third, and then assumed the first was in order, marking all three at the same time.
@brands213110 жыл бұрын
Asbjørn Grandt That's because all 3 were already sorted. Ok, let me explain, and also to the other people that liked your comment. In the end, we had a section that was already sorted, the balls that were lit up, and a section that was unsorted, the 3 balls at the end. When bubblesort went to sort out the last 3 balls, it compared the first 2, no swap was made, then it compared 2 and 3, and no swap was made. We have bubblesorted the unsorted section, no swaps were made during that iteration, now we can assume that the unsorted section has been sorted (since there were no swaps) this is because an efficient bubblesort has a "swap" flag that is turned on if a swap was made, since we ran through the 3 unsorted balls, without turning on this flag, then bubblesort knows all element in this unsorted section are sorted. You can see this at 3:05 where bubblesort checked all 3 balls in the unsorted section and did not make any swaps, leaving the swap flag down, meaning we can stop the algorithm early.
@AsbjornGrandt10 жыл бұрын
Brandon Sandoval I can see that now that I rewatched that part
@SimonTiger5 жыл бұрын
@Asbjørn Grandt Hehe...it's because already knew the list was sorted! How? The last pass it performed was: "Swap 1 2? No. Swap 2 3? No." If it's all no's, all the smaller elements are already on the left, and the bigger ones on the right, meaning that the list is already sorted.
@confused65268 жыл бұрын
udipod, I just accidentally ran into your video. They're all great. You don't mind telling me what tool/software your used to create the animation? Or your write it yourself? Thanks John N.
@udiprod8 жыл бұрын
+confused Thanks :) I'm using a tool called Autodesk Maya. It's very powerful but not easy to learn.
@confused65268 жыл бұрын
+udiprod ! Thanks a lot for the info. You're done a great job of explaining computer/physics concepts. Keep up with good works. Can't wait to see more of your videos. Have a nice day! John N.
@zork346 жыл бұрын
you don't have to write comments like letters
@SiddharthJogi6 жыл бұрын
@@zork34 😂😂lmao right
@uknownada5 жыл бұрын
@@zork34 Although it's probably the easiest way to get a reply from a channel like this.
@billbill88524 жыл бұрын
Nearly 1am and KZbin recommends this out of the blue. And I watch it anyway. Thus is life.
@deanmoncaster4 жыл бұрын
Even though I knew the outcome before they started I still wanted bubble sort to win. They're so cute!
@alexlion05113 жыл бұрын
"this robot is short-sighted and can only compare balls when they're right in front of its' eyes"
@ahmde5 жыл бұрын
Just WOW, this visualization is on another level!
@poliopoptm44747 жыл бұрын
boy this new series of battlebots is going great.
@pa20065 Жыл бұрын
The BubbleSort guy is smarter: he lets the other guy win, so he isn't bothered with these stupid tasks anymore!
@nathanj.williams19554 жыл бұрын
More insightful than meets the eye. Tiny training video to algorithms. Cool CGI.
@zapole7 жыл бұрын
I remember when I learned Java and my teacher expected us to do plan and program such a thing like "bubble sort", but we did it with buckets as long as I remember :)
@syrilfiggus135011 жыл бұрын
Ahhh, so Sorting competitions are going to be what replaces sports when the robots take over. Very informative.
@shaner21712 жыл бұрын
Amazing video. I always thought there should be a visualization program that visualizes computer code algorithm in a nice way like you've done here for these sorting algorithms, it could have a visual that shows how data is being passed around and manipulated in the computer code or perhaps computer networking. Maybe you're the guy who should make them! Thanks again for the awesome vid.
@yiwen67945 жыл бұрын
Who watched till the end? That bubble sort deserves some attention
@Densmoreb12 жыл бұрын
The robot is not the only one that needs balls close to its eyes
@FiendishFatty2 жыл бұрын
Is it just me or I just binge watch all of these sorting analysis videos
Hello please sort this sentence in ascending order.
@anonymoususer98377 жыл бұрын
Counting sort 😀
@k_tess7 жыл бұрын
I think you gave me OCD.
@groszak16 жыл бұрын
I'll start with a swap 8_sentence 11_order. 4_the 6_of 9_in 3_sort 5_words 1_Hello, 7_this 2_please 10_acending
@QuartzOfficial6 жыл бұрын
Hello, please sort the words of this sentence in ascending order
@Quarker12 жыл бұрын
Yay you let Bubble Sort finish this time! Btw, if you were able to make more videos like this on other sorting algorithms, it'd be extremely helpful!
@anikkhan88113 жыл бұрын
Quick sort made the best comeback in history!
@withbestrequest7 жыл бұрын
Your visualizations are awesome! This is how educational material should be like!! thnx
@eliaszkurwa Жыл бұрын
i got distracted when i heard "balls"
@GretgorPooper7 жыл бұрын
This is an adorable way to explain algorithms to kids
@teaguejelinek40384 жыл бұрын
I think bubble was just a little nervous. With a name like quick sort as the opponent I would have been too. Good job both of u
@Clement-xy9iv7 жыл бұрын
Nice explanation!
@EgorBo5 жыл бұрын
Give those robots already sorted data and we will see who is better ;-)
@OddworldCrash11 жыл бұрын
I'm learning this for Visual Basic and i was very moody till i saw this video. Awesomely made :D
@Broockle8 жыл бұрын
These are fun to watch. Though I think all these approaches could all be explained in a single video. That would be nicer than having to watch all these Separate Great job making this random subject engaging though :D
@nicflatterie77726 жыл бұрын
Wow, I wish I had this sort of video when I was in CS in college. Great work, great channel!
@Adomas_B4 жыл бұрын
Bogosort is also a very great sort, it can sort completely randomised stack in one move! If you're astronomically lucky
@ricksminecraft5 жыл бұрын
Wow! Excellent Visualization. Cool.
@iagoabreu69864 жыл бұрын
The year is 2020 and the bubble bot is still sorting the balls
@robbierotten22158 жыл бұрын
Winner! Bubblesort is like, I don't give a crap, gotta finnish this s_t.
@channelname10yearsago684 жыл бұрын
Don't feel sad for the bubble sorting bot. He's doing his best
@RaymanChrome4 жыл бұрын
What about Cocktail Shaker Sort?
@SarenArterius11 жыл бұрын
radix sort pls
@anonymoususer98375 жыл бұрын
Radix is very powerful, beating even quicksort and mergesort if the keys in the sequence are short enough, but it takes a lot of memory, stinks on longer keys, and only works on numbers (so no colored ball sorting). If you want to go all the way, counting sort is even faster than radix in an optimal set of elements, but it only works on positive integers (similar to radix but it can't even hypothetically handle decimals), takes even more memory than radix (as much memory as the biggest element), and is even slower if the biggest element is too big (even if the other elements are smaller).
@krisizcelja5 жыл бұрын
I want to see the base 10 one. You know, the ear rape one?
@toddkes58904 жыл бұрын
@@anonymoususer9837 Ball colors can be expressed in 'brightness'. For example, the above spheres can be '000000' for the pitch black one, and 'FFFFFF' for the brightest one. From there, Radix can sort the balls
@matitiudeforever81556 жыл бұрын
all heroes don't wear capes...you guys are one of them....thank you soooo muchhhhh...!!
@mrpowershell69006 жыл бұрын
I was watching historical youtube video's on how WWI started and ended here. Quick sort wins.
@Hao-gc3dp11 жыл бұрын
Awesome animations! Hoping you could make videos on other sorting algorithms.
@tarcal879 жыл бұрын
Look at him go :D all the way to the end. Give it up buddy
@sanxchepsharma71495 жыл бұрын
how dare you you talk to a robot who is physically and mentally handicapped. TAKE IT BACK
If you overclocked Bubble’s reduced instruction set, he could win.
@valrabellkeys98675 жыл бұрын
Great video, explains the algorithm quite well!
@dicidicee10 жыл бұрын
Very original and well done !
@Vlcet11 жыл бұрын
Nice video with clear demonstrations.
@thehammurabichode79944 жыл бұрын
"I hurt myself today" - Bubble Sort
@groszak16 жыл бұрын
There are several different pivot rules for quick sort, such as random pivot you used, first pivot, last pivot, middle pivot and median of three (median of first, middle and last pivot).
@reformed_attempt_14 жыл бұрын
This deserves 500M, not 500k views
@seaque.4 жыл бұрын
Never give up king
@dude_ranvier6 жыл бұрын
Great video and animation
@DylanCVlogTV4 жыл бұрын
Kind of like sorting students for abilities. If you go one by one, it's nearly impossible, but grouping them and testing them in batches is much more efficient.
@陳有容-l6c4 жыл бұрын
The first algorithm is more likely selection sort than bubble sort
@marinadavies19175 жыл бұрын
Please do more of these
@metacross28265 жыл бұрын
Bubble sort robot is doing his best
@metacross28263 жыл бұрын
Hello, old me
@offchan5 жыл бұрын
Though people might have mistaken that quicksort is just slightly quicker than bubble sort from this animation because you only showed it on 10 items. But in reality, quicksort can be tremendously quicker if the number of items is in order of millions or billions. It can mean that bubble sort uses a year while quicksort uses 10 minutes.
@udiprod5 жыл бұрын
Right you are. There's a visualization of this difference you mention in a more recent video (near the end): kzbin.info/www/bejne/iou1iIWgppd2d8k
@pga12810 жыл бұрын
This channel is quality.
@shripperquats58723 жыл бұрын
god, I hate how these are 'intuitively' explained. By using the simplest explanation they think it makes it more 'palatable', but what really happens is the parameters are not understood and the example is lost. When someone hears the example "The robot has short vision", their immediate thought would be "Well why don't they make a robot that can see all the balls clearly?"
@Sebastian101112 жыл бұрын
Awesome video; helped a lot in my AP Computer class!
@linsproul35486 жыл бұрын
so this is how robots keep themselves entertained
@szymon12w.64 Жыл бұрын
"Sort theese balls"
@irenerosejohnson83464 жыл бұрын
These cute fellows are making things simple, abstract and adorable ❤️👍
@martinbalage92255 жыл бұрын
“The End. Thank you for watching” before bubble sort taking a break...funny, and cruel.
@finite-element11 жыл бұрын
Hi, I bought your book for kindle! What a nice read!
@lennytheburger5 жыл бұрын
hey can you visualize how radix base 10 just pulls an already sorter array out of the next dimention