Can we do Quick sort with n logn worst case complexity?
问题 I was wondering if we can somehow modify the Quick sort algorithm to produce the worst case time complexity of O(n logn). Although this can be done by permuting data and then assuming that we will get the average case complexity rather than worst case. But this is not a full proof solution as we can again land into worst case after permuting. Is there any other way around that you can suggest. 回答1: Well, Yes we can bring it down to O(nlogn). All the algorithms I have seen that try to bring