4 ms·
In addition to what others have said, there's some amount of ego for the respective inventors and colleagues of inventors of sorting algorithms. So some profess
by logn 13y ago
In addition to what others have said, there's some amount of ego for the respective inventors and colleagues of inventors of sorting algorithms. So some professors harp on certain algos only because their former grad student invented it.
And, yeah, it all depends on the context for your sort. Bubble sort (!) can be good if you know only one element is out of order.