CS 373: Design & Analysis of Algorithms: Linear-Time Sorting Algorithms
CS 373: Design & Analysis of Algorithms: Linear-Time Sorting Algorithms
Algorithms
n
n
n!
e n
Thus: n
h lg
e
Dr. Sifat Momen 1 10/27/2018
Lower Bound For
Comparison Sorting
So we have
n
n
h lg
e
n lg n n lg e
Thus n minimum
the lg n height of a decision tree is (n lg n)
RadixSort(A, d)
for i=1 to d
StableSort(A) on digit i