Why though? Why go through the trouble of creating a video explaining one of the worst sorting algorithms ever invented. Why do we even teach this in school?
edit: I really wasn't trying to gatekeep. Bubblesort is simply a shitty algorithm that has nothing to offer to the world. Teaching bubblesort is like teaching bogosort - there is nothing useful in the knowledge.
I always have to laugh when some gate keeper tries to act like a smart ass. Oh you are so smart but you can't see why they teach a stupid simple algo? Jesus Christ, it's to learn the basics and what not to do.
Why would you teach anyone how not to do something? You know there is many ways to inefficiently sort a list. Why make a video about any of them?
If you're going to teach bubblesort, you might as well teach Bogosort.. maybe eventually after seeing all the ways you're not supposed to sort a list, the student will arrive at a better algorithm on their own. But this seems inefficient. IMO, the introductory algorithm to sorting is Selection sort. It's intuitive and while not terribly efficient, it does allow you to build on the knowledge and introduce more complex algorithms, bubblesort does not.
Bubblesort, is just some stupid peace of trivia that people who are full of themselves like to bring up as a stupidly overused joke.
You know there is many ways to inefficiently sort a list.
That's a terrible assumption. Not everyone is as gifted as you.
We can't keep people out of a passing lane or use blinkers and you think people are naturally, and casually looking for better ways to improve their sorting efficiency?
What? All I am saying, is if you were to teach someone sorting algorithms, do not teach them something useless that has no potential to build up to anything useful.
What you are arguing is that the best way to teach a kid how to tie their shoes is by first showing them how to make a dead knot. Sure it's simple, but what is it's use, not like you can go on and teach other knots from there. You're basically teaching someone how to fuck up.
-15
u/[deleted] Dec 02 '19 edited Dec 03 '19
Why though? Why go through the trouble of creating a video explaining one of the worst sorting algorithms ever invented. Why do we even teach this in school?
edit: I really wasn't trying to gatekeep. Bubblesort is simply a shitty algorithm that has nothing to offer to the world. Teaching bubblesort is like teaching bogosort - there is nothing useful in the knowledge.