We must know, we will know !

万物并作,吾以观复

Linear-time Sorting:Lower Bounds, Counting Sort, Radix Sort

In this lecture, we still talk about sorting and we want to ask “How fast can we sort?”. Let’s review the running time of previous learned Algorithms, the Heapsort and Merge Sort can achieve ${ O(n \lg n) }$ in the worst case. Randomized Quicksort can run in ${ O(n \lg n) }$ time on average. And Insetion Sort is ${ O(n^2) }$. All these Algortihms run no faster than ${ O(n \lg n) }$.

So can we do better?

Read more