>>>> I have no idea why after all these years people still think
>>>> quicksort is a good idea. It's so trivial to find an example where
>>>> it takes O(n^2) time.
>>> It's certainly not very trivial to find such an example of the
>>> choice of pivot in the paritioning is smart.
>
>> Thank you for illustrating my point :->
>
> Your point? You said it's trivial to find such an example, and I said
> it isn't. How does that illustrate your point? Unless you were being
> sarcastic or something.
I think he's hinting that finding the right pivot is the "hard" part of
the algorithm, and if you get that wrong you get poor performance...
Post a reply to this message
|