after i watched this video, my insight is very open because the video is very good to give information It demonstrates two comparison sorting algorithms: Bubble sort and Quick sort.
Ya know instead of quicksort robot holding the pivot ball in one hand maybe it can place it on top of it's head so both hands are free. I've alway visuallized it as Left-hand && Right-hand, but then again the pivot ball wasn't supose to be picked up like that in the first place.
the quick sort one was slightly confusing when shown like this though, for 2 reasons. #1 The robot needs to walk around a lot more, making it slower. Is this true in the actual algorithm? and #2 The placing of the first "lighter colour" ball on the rack, then suddenly moving on to search the other end of the list. Is that really how it's done?
@coffeeteamix Re #1: Indeed Quick sort moves around a lot. When you need to sort a large file on disk, every large move causes loading a different chunk of the file to memory. In this case other algorithms are better (not Bubble sort, though). Re #2: The real Quick sort simply makes a note of the location of 'the first lighter ball' and then moves to search the other end. However when the time come to swap elements - usually this requires putting one of them in a temporary location
it all depends on how you define better, if we are talking time complexity the quicksort is a lot better then most compairable algorithms ie selection and insertion.
@coffeeteamix Yes it is really how it is done. Moving it up on the top shelf is symbolic of the extra memory place quick sort needs to work. This extra step can contribute to the time it takes to complete a quicksort but the speed of the method far outweighs the little extra time it may take for the additional step. Quick sort is y= x^2-c with the constant being whatever little extra step you need to do. Compared to Linear which is just y=x.
Very good video, but it would have been better if there were more differences between the brightness of the balls as they are not very obvious, especially in brighter balls.
@pash080 This would just transfer the problem to the robot's memory. Computers must have an algorithm for sorting, even in their memory. You, being human, can 'sort them all at once' using your intuition. Imagine that you need to sort 1,000,000 balls. Since this is too much for human intuition, you would have to resort to an algorithm, just like a computer.
"You, being human, can 'sort them all at once' using your intuition."
I don't know about that, don't you think were really using an algorithm ourselves, though me may not know we are doing this. The only difference is computers dont "know" they are sorting something. and we do.
@heatmourning33 I agree that when someone solves a problem intuitively, there is some algorithm underlying this intuition. What I meant to say was that sometimes it's so simple to solve a problem intuitively, e.g., sorting small lists, that one may mistakingly believe there's no need for an algorithm at all. Then when you want teach a computer how to do it, you suddenly realize you don't even know how you do it :)
@udiprod Also, imagine having to sort one million balls by color, and size (each color having x-amount of sizes). This would be impossible for any human, without a system/algoritm to follow. Even simple things like, "First group all balls by color" is an algoritm. Sorting isn't just placing 10 balls in the right order. It's also about scaling it up in insane numbers.
very nice.. these types of animations to bring forth knowledge will accelerate the knowledge revolution.. people like you bring quick understanding by applying the kiss method (keep it simple stupid) to demonstration..
I can see the efficiency. It's the hardware interface that I'm trying to visualize because it seems to me that Quick Sort would greatly depend upon non-resident memory to enhance it's ability. Just throwing something out there for consideration.
Great video, although I agree with some of the critics here, like using brightness instead of numbers, I understand the motivation and in the end it all came out very clearly, so great job!
I think both colors and letters on the balls would help make it clearer to read.
It is true that the mind can process color much faster than symbols though.
But the colors are too similar. Probably got washed out when you loaded it onto youtube? Maybe adding a cool/warm color scheme to the ball colors would be helpful in making the gradient even more easily distinguishable?
That said, this is the best explanation of quick sort I've found on youtube.
Animation is great but... I found other (much simpler videos) more helpful.
Still I consider this one OK.
Just one thing: I don't get is why you've chosen different tints of red rather that putting either numbers or letters on the balls to be sorted? (That would be more transparent to grasp)
Ok, but I would at least advise to choose greater colour difference between the balls or/and less balls cause some of the colour differences are hardly distinguishable to my eye & still I'm not a colour blind person :) That can also be intensified by the video compression
awesome :D i wondered how quicksort works, cos ive only been able to return the highest number. Now i realize u need to perform multiple runthroughs :D
Yeah it sure rocks. Not that the method itself would be really hard to understand, there are far more complex algorithms out there - but I will never ever forget Quick and Bubblesort now. That little robot is now forever sorting inside my brain... ;)
This is pair-wise comparison based sorting; Radix sort isn't. The video description's last paragraph says that a broader range of algorithms could have been used, faster than quick sort, had it not been restricted to one type of sorting algorithm.
Really cool animation! Was really fun to watch. Wouldn't watch it if I wasn't interested in the technial details, but the video wasn't made to show off these, so all in all a 5/5
I am just wondering does it matter what pivot do we pick? But I am assuming that is does not matter if we take pivot from the middle or beginning or whenever
A common method of picking a pivot is the median of 3. You pick the first, last, and middle items and use the middle value as the pivot. These will always be different items because once you get down to ~10 items, you use something like insertion sort to finish it off.
You mean like if the user is trying to be a wise guy and giving you a bad case? If you're afraid of that, you can check to see if quicksort is performing well enough while sorting. If it is not, turn it over to heapsort which cannot be sabotaged to O(n^2) like quicksort can be (see introspective sort).
The median of 3 has worked very well in practice. With just 2-3 comparisons you drastically improve your chances of getting a value close to the true median.
This is such a good video, missed a lecture and this helped me out man!! kudos to you :)
riocardw 8 hours ago
I am very happy to see the vidoe after you give this It demonstrates two comparison sorting algorithms: Bubble sort and Quick sort.
bebeheuy 1 week ago
I Really Like The Video From Your Visualization of Quick sort
AntoMelta 1 week ago
Your Video Is Very Useful Sharing It demonstrates two comparison sorting algorithms: Bubble sort and Quick sort.
willamricard 1 week ago
after i watched this video, my insight is very open because the video is very good to give information It demonstrates two comparison sorting algorithms: Bubble sort and Quick sort.
imegatrone 1 week ago
@the0th not funny, color blinds can still differenciate gray shades
CuriousGuy95 2 weeks ago
Ya know instead of quicksort robot holding the pivot ball in one hand maybe it can place it on top of it's head so both hands are free. I've alway visuallized it as Left-hand && Right-hand, but then again the pivot ball wasn't supose to be picked up like that in the first place.
Ashingda 3 weeks ago
so cute! lol helps alot!
winneluo 1 month ago
this would be useful if i wasn't colour blind.
the0th 1 month ago 5
this looks like selection sort
purefatdude2 2 months ago
Really sweet video! really like it!
Fungusfern 2 months ago
this is an awesome video that helps me understand quick sort in a quick way! Great job!!!!!!!!!!! :)
Kylelix7 2 months ago
great video dude... didnt quite understand quicksort though! :(
cpringipas 2 months ago
Great job
dhulla 2 months ago
qUICK SORT RULEZ!
kopi0hun 3 months ago
Poor Bubble sort. Feel bad for him :(
blajsad 3 months ago 3
Thank you for this great animation, helped me a lot to understand it!
marvinjackson44 3 months ago
Very good.
noone688 3 months ago
I really love this
Idkfawin32 4 months ago
fantastic animation! Thanks so much!
Babelfish112 4 months ago
awesome animation, thanks for the upload!
MrShadowz1337 4 months ago
aawwww. cutest visualization ever =)
Bublerkin 6 months ago
love this one, realy help me to understand the difference between bubble sort and quick sort.
MarianaCosta8 7 months ago
FANTASTIC!!!! I wish the lessons in my university were like that....
vlog7853 7 months ago 2
I feel sorry for bubblesort0r!!!
threewing 7 months ago
This has been flagged as spam show
Collection of Most frequently asked interview question: anandtechblog.blogspot.com/
algoforyou 7 months ago
awesome video!
MOEPBIBER 8 months ago
That's brillant! But you should put on this video some music to make it funnier..:)
DjHouselover88 8 months ago
best animation of sorts ever
joeldsouza2 9 months ago
This has been flagged as spam show
Get a good friendship with good girls naneedj.info
you are the only solution for bbw naneedj.info
malisha70 9 months ago
Comment removed
DrummerKeepkeep 9 months ago
watched the whole video with smile on my face
asdat0r1 9 months ago
writing a class test right now so thx :)
strngVIS 9 months ago
this is cool
siliconsurf 10 months ago
Ok, this video with all these animation is really great to get in mind what happens with bubble and quick sort.. Thumps up for making this ;)
Tr3LoSGr 10 months ago
Well done!
nandakoryaaa 11 months ago
This was awesome. Best sorting algorithm demonstration ever.
region1111 11 months ago
Thanks from Poland:)
RobertBF2 1 year ago
why quick sort is winner?
bubblie sort scored more points!! ;PPP
Mr4Kapoios 1 year ago 4
That was fucking awesome, nice video.
Danph77 1 year ago
It would be easier to understand if the differences were of size (big and small) then color.
GuyErnest 1 year ago
great visual explanation, helped a lot, thanks! =]
RichTCovers 1 year ago
This has been flagged as spam show
My name is Mike from LA Although there busizz4me.info
consuelahuttonc 1 year ago
i love it!
ValterBCC 1 year ago
cute overload XP
the quick sort one was slightly confusing when shown like this though, for 2 reasons. #1 The robot needs to walk around a lot more, making it slower. Is this true in the actual algorithm? and #2 The placing of the first "lighter colour" ball on the rack, then suddenly moving on to search the other end of the list. Is that really how it's done?
coffeeteamix 1 year ago 3
@coffeeteamix Re #1: Indeed Quick sort moves around a lot. When you need to sort a large file on disk, every large move causes loading a different chunk of the file to memory. In this case other algorithms are better (not Bubble sort, though). Re #2: The real Quick sort simply makes a note of the location of 'the first lighter ball' and then moves to search the other end. However when the time come to swap elements - usually this requires putting one of them in a temporary location
udiprod 1 year ago 4
@udiprod
it all depends on how you define better, if we are talking time complexity the quicksort is a lot better then most compairable algorithms ie selection and insertion.
travismartin26 11 months ago
@coffeeteamix Yes it is really how it is done. Moving it up on the top shelf is symbolic of the extra memory place quick sort needs to work. This extra step can contribute to the time it takes to complete a quicksort but the speed of the method far outweighs the little extra time it may take for the additional step. Quick sort is y= x^2-c with the constant being whatever little extra step you need to do. Compared to Linear which is just y=x.
pmahearn88 8 months ago
Very good video, but it would have been better if there were more differences between the brightness of the balls as they are not very obvious, especially in brighter balls.
alilsheikh 1 year ago 2
this is AWESOME. do more please!!! totally awesome.
321noone 1 year ago
Poor green robot, it's not your fault.
KANGKAI1980 1 year ago
cool way of learning boring stuff
05deeps 1 year ago
It only took me three seconds. I AM MAN!
ace1122tw 1 year ago
Can u give the download link
ashleylizze08 1 year ago
CAN U GIVE ME THE DOWNLOAD LINK
ashleylizze08 1 year ago
I understood the esence of quick sort with this video. Thanks.
2005090087 1 year ago
why can't the robot get the glance of every ball and memorize their brightness then sort them at once?
pash080 1 year ago
@pash080 This would just transfer the problem to the robot's memory. Computers must have an algorithm for sorting, even in their memory. You, being human, can 'sort them all at once' using your intuition. Imagine that you need to sort 1,000,000 balls. Since this is too much for human intuition, you would have to resort to an algorithm, just like a computer.
udiprod 1 year ago 46
@udiprod
"You, being human, can 'sort them all at once' using your intuition."
I don't know about that, don't you think were really using an algorithm ourselves, though me may not know we are doing this. The only difference is computers dont "know" they are sorting something. and we do.
heatmourning33 1 year ago
@heatmourning33 I agree that when someone solves a problem intuitively, there is some algorithm underlying this intuition. What I meant to say was that sometimes it's so simple to solve a problem intuitively, e.g., sorting small lists, that one may mistakingly believe there's no need for an algorithm at all. Then when you want teach a computer how to do it, you suddenly realize you don't even know how you do it :)
udiprod 1 year ago 24
@udiprod Also, imagine having to sort one million balls by color, and size (each color having x-amount of sizes). This would be impossible for any human, without a system/algoritm to follow. Even simple things like, "First group all balls by color" is an algoritm. Sorting isn't just placing 10 balls in the right order. It's also about scaling it up in insane numbers.
Hildoz2 1 year ago
very nice.. these types of animations to bring forth knowledge will accelerate the knowledge revolution.. people like you bring quick understanding by applying the kiss method (keep it simple stupid) to demonstration..
outlawstc 1 year ago
I can see the efficiency. It's the hardware interface that I'm trying to visualize because it seems to me that Quick Sort would greatly depend upon non-resident memory to enhance it's ability. Just throwing something out there for consideration.
franknblunt 1 year ago
Great illustration!
TheVolcomDust 1 year ago
It was very very cool!
Very very very! )
JTim90 1 year ago
excelent video
tyvm
doom3x 1 year ago
Great job, I love the animation. Seeing things (such as computer theory) work makes things much easer (for me) to understand. :D
jarod997 1 year ago
Very nice -- I like the comparison too.
jarod997 1 year ago
Excellent video and animation, thanks. Gracias.
wjpinto 1 year ago
Thanks, excellent video and explanation. Gracias.
wjpinto 1 year ago
LbigOL
ivspeedway 1 year ago
Great video, although I agree with some of the critics here, like using brightness instead of numbers, I understand the motivation and in the end it all came out very clearly, so great job!
Funartic 1 year ago
I hate quicksort.
GECF680C2 1 year ago
Very good visualisation. In my opinion, understanding a sorting algorithm helps with writing the code, because you actually know what your writing.
kahootbird 1 year ago
thanks - the funny visuals will help me remember this!
tomhsharky 1 year ago
cool animation :) makes me think of whole sorting championships :D
YesusFist 1 year ago
it was exceelent but bolls should be numbered instead of brightness,,,make easy to understand>>>9.5/10
vansh64 1 year ago
I think both colors and letters on the balls would help make it clearer to read.
It is true that the mind can process color much faster than symbols though.
But the colors are too similar. Probably got washed out when you loaded it onto youtube? Maybe adding a cool/warm color scheme to the ball colors would be helpful in making the gradient even more easily distinguishable?
That said, this is the best explanation of quick sort I've found on youtube.
PolygonRunner 1 year ago
super cute!
astrophil79 1 year ago
This video was amazing! Very useful and it made me understand a lot better.Thanks!
Katekazoo 1 year ago
good concept and animation. I wasn't so much of a fan of the sound though
syphondu 1 year ago
i feel i just learned something
The4LA2Baker0 1 year ago
awsome, love the animation
senos64 1 year ago
Animation is great but... I found other (much simpler videos) more helpful.
Still I consider this one OK.
Just one thing: I don't get is why you've chosen different tints of red rather that putting either numbers or letters on the balls to be sorted? (That would be more transparent to grasp)
greeppl 1 year ago
Two reasons:
a) To demonstrate that comparison based sorting algorithms can work on any comparable objects
b) In my opinion it makes it clearer to see at a glance if the balls are sorted or not.
Anyway, thanks for the comment. I'm sure other videos stress other aspects of quick sort.
udiprod 1 year ago 3
Ok, but I would at least advise to choose greater colour difference between the balls or/and less balls cause some of the colour differences are hardly distinguishable to my eye & still I'm not a colour blind person :) That can also be intensified by the video compression
Cheers,
greeppl 1 year ago
@greeppl yes, actually its makes sorting appear a much more comlicated operation that it is!
hardToSignUpHere 1 year ago
i kinda wanted to see how long it took the other one, ohh well, still a great animation
kewlman139 1 year ago
Great video!
jnoort 1 year ago
very funny AND exciting!
interted 1 year ago
I still don't have a clue..
hassia1 1 year ago
the robots were so cute and funny that I couldn't help laughing. Great job!!
KelvinNg88 1 year ago 2
The robots are awesome XD
Repter75 2 years ago 2
really good !
Amazing!!!
petronelgta 2 years ago
These robots are so lovely! I want to hug them!
karogyoker999 2 years ago 4
Awesome!!!
netivotham 2 years ago
never seen such a great sorting-algortihms animation... was really funny to watch this one!
RobinLinus 2 years ago 75
very nice visualization
laghack 2 years ago 2
really good
schm0gi 2 years ago 2
Comment removed
pigpigpigwwf 2 years ago
Comment removed
pigpigpigwwf 2 years ago
really nice!
CMThF 2 years ago
THIS IS GREAT !
globalarte 2 years ago
Amazing!!!
reneliza2002 2 years ago
Awesome!
suzume 2 years ago
awesome :D i wondered how quicksort works, cos ive only been able to return the highest number. Now i realize u need to perform multiple runthroughs :D
theonlinegamers 2 years ago
THE BEST ANIMATION!!!
youralibaba 2 years ago
Thx to this vid, i may be able to ace my midterm now...
FireKyrie 2 years ago 2
thats some intense contest haha.... GO QUICKSORT!!!
CMONEY4REAL 2 years ago
very nice.. really helpful
chandima1988 2 years ago
cool, i love this video!
i think everyone will understand the idea after watch it.
bhysyq 2 years ago
It was AMAZING. Please, if possible, make more of these videos.
alsk123654 2 years ago 2
Comment removed
thejasper110 2 years ago
Great video, thanks
Kyprus22 2 years ago 3
awesome!
wihenao 2 years ago 3
It's stuff like this that makes the Internet worth the trouble.
Very good video.
JohnM3D 2 years ago 9
Yeah it sure rocks. Not that the method itself would be really hard to understand, there are far more complex algorithms out there - but I will never ever forget Quick and Bubblesort now. That little robot is now forever sorting inside my brain... ;)
Zaltaal 2 years ago 5
AYA HIRANO
SuzumiyaHaruhi0 2 years ago 2
thanks a million
ulharmony 2 years ago 4
RESPECT MAN
GREAT VID
Lordoss 2 years ago 6
Good looking out for putting this together, because you simplified what my teacher said which was too confusing.
1nglewattz1 2 years ago 5
GREAT VIDEO!!!!!
elrony2004 2 years ago 4
This is a fantastic video. It really helps people who learn visually, such as myself. Thank you very much.
DrEnzyme 2 years ago 6
great video, very funny!
ulisseslesi 2 years ago 3
this is so beyond educational, it leaves you with a funny visual representation of the method.
thumbs up
codesyn 2 years ago 3
Awesome! A really interesting and useful demonstration.
yetanotheryugushen 2 years ago
For this kind of sort, a Radix would outperform both the quicksort and the bubble sort. It's a 0(kN).
Tfpsly 2 years ago
This is pair-wise comparison based sorting; Radix sort isn't. The video description's last paragraph says that a broader range of algorithms could have been used, faster than quick sort, had it not been restricted to one type of sorting algorithm.
degensquared 2 years ago
Nice demonstration. I think this would be very useful demonstration, for introductory courses in computer science / programming.
prodigyjar 2 years ago 4
Really cool animation! Was really fun to watch. Wouldn't watch it if I wasn't interested in the technial details, but the video wasn't made to show off these, so all in all a 5/5
Quuua 2 years ago
So, did you do the animation algorithmically or by hand?
QuicksilverJohny 2 years ago
Both. The robots are mostly automatic.
udiprod 2 years ago
@udiprod What animation software did you use for this?
sleelin 1 year ago
@sleelin Autodesk Maya
udiprod 1 year ago
argh! attack of the comic sans!!!!
gopiikrisshna 2 years ago 31
A really good video I'll show the kids, thank you
BKF
robrolley 2 years ago
I think QuickSort is a pretty cool guy, eh sorts ballz and doesnt afraid of anything!
debil667 2 years ago 12
genius!!
tottis44 2 years ago
I love when the robot looks at the balls hehe
rolnxyz 2 years ago 2
Poor Bubble sort =/
He's always being picked on too.
DawnnieE 2 years ago 6
I am just wondering does it matter what pivot do we pick? But I am assuming that is does not matter if we take pivot from the middle or beginning or whenever
Romahotmetytky 2 years ago 3
It doesn't matter where you take the pivot from but it does matter where this pivot belongs in the end.
Ideally you'd want
to pick a pivot that will split the list evenly.
I.e., the median. If you have bad luck and you pick the darkest or brightest ball as the pivot, you'll get to do a lot of extra work
udiprod 2 years ago
A common method of picking a pivot is the median of 3. You pick the first, last, and middle items and use the middle value as the pivot. These will always be different items because once you get down to ~10 items, you use something like insertion sort to finish it off.
PWOPLW 2 years ago
That's pretty bad, it leaves you open to obvious attacks. Random pivot is best.
JodoYodo 2 years ago
You mean like if the user is trying to be a wise guy and giving you a bad case? If you're afraid of that, you can check to see if quicksort is performing well enough while sorting. If it is not, turn it over to heapsort which cannot be sabotaged to O(n^2) like quicksort can be (see introspective sort).
The median of 3 has worked very well in practice. With just 2-3 comparisons you drastically improve your chances of getting a value close to the true median.
PWOPLW 2 years ago
really nice video and representation of the quiksort method
to be completely correct, you culd some some almost sorted or reverse sorted array of balls :)
VectorAkashi 2 years ago
Very very good work.!
karthikceg161187 2 years ago
wow that's really cool! wich software did u used?
GioFX90 2 years ago
Thanks. I used Autodesk Maya
udiprod 2 years ago
made my day :-)
mazaltow 2 years ago
really nice one
bhargav2785 2 years ago
There should be a heapsort vs. quicksort sorting battle.
VitaminPat 2 years ago
Brillant !
apcdasilva 2 years ago
Great job! You make these two algorithms extremely easy to understand! Respect!
lcc0612 2 years ago
Very nice!
adiror 2 years ago
that's just wonderful, my friend!
siddharthaananda 2 years ago
excellent visualization
Jznn 2 years ago 2