4 ms·
> Since bubble sort is always taught as a bad sort... I was taught about bubble sort in three different situations. In each one, bubble sort was not taught as
by venning 11y ago
> Since bubble sort is always taught as a bad sort...
I was taught about bubble sort in three different situations. In each one, bubble sort was not taught as a "bad" sort. The instructor always focused on the difference between worst-case performance and best-case performance. It always forced me to learn how much context matters.
Bubble sort should not be used as teaching tool for "bad algorithms" but a teaching tool for understanding your data and how much you really know about it.