r/programming • • Dec 02 '19

Bubble sort visualization

7.4k Upvotes

268 comments sorted by

View all comments

Show parent comments

1

u/BruhWhySoSerious Dec 02 '19

I am shocked that a professor at one of the greatest comp sci programs on the planet thinks bubble sort is not worth his 2 minutes.

There isn't a great reason to teach Bubble Sort.

It's simple.

While a comp sci class at UC or an AP class will only spend 15 minutes on this, a community college course is going to spend days on this, and have MANY students missing any real mathematical background.

I'll actually look into the reasoning behind this later but I cannot imagine a good reason for skipping a 15 minute lecture on this purely as and introduction and example on what not to do. For many, understanding the difference between insertion, bubble, and merge is a complex topic which will need reinforcement.

1

u/[deleted] Dec 02 '19

Why? What good is this algorithm? It is useless. Do you think Bogosort is worth knowing?

I am shocked at your stubborn ignorance.

0

u/BruhWhySoSerious Dec 02 '19

Yes I think the 3 minutes to explain what is absolutely worth it and is valuable when learning how shit sorts scale.

0

u/valarauca14 Dec 02 '19

3 minutes to explain something to a beginner is doing is a disservice to that student.

2

u/BruhWhySoSerious Dec 02 '19

👌 have a great evening.