Algorithm Analysis (CSC 301 2015F) : EBoards

CSC301.01 2015F, Class 18: O(n) Sorting Algorithms


Overview

Preliminaries

Admin

Upcoming Work

Extra Credit

Academic

Peer

Questions

Lower bounds, revisited

We saw that the best we can do on a comparison-based sort was O(log(n!)) = O(log(2^(nlogn))) = O(nlogn)

Sam gave a mediocre proof that n! =~ 2^nlogn

We're going to prove something more directly relevant

log(n!) is in Theta(nlogn)

log(n!) is in O(nlogn)

log(n!) is in Omega(nlogn)

log(n!) is in O(nlogn)

log(n!) is in Omega(nlogn)

Problem! We cheated

Other techniques

Think about

Bucket sort

Radix sort