|
|
|
|
|
by cabalamat
5594 days ago
|
|
>> There are too many non-trivial algorithms that you are just likely to not rediscover. > I agree, but would also (respectfully) ask, "So what?" Well, if you're trying to sort big arrays with bubblesort, you may have to wait a long time... |
|
>Teaching bubble sort as some kind of "basic sorting algorithm" has real-life negative consequences. This is a real-life example: this is a piece of code in the gnu flex program:
>There's absolutely no rational reason why bubble sort was used here instead of insertion sort. Bubble sort can only be slower, and it's not in any way easier to implement.