Quicksort Lecture4
Quicksort Lecture4
Algorithms
Lecture: 9 Quicksort
• Divide
• Conquer
• Combine
• Despite this slow worst-case running time, quicksort is often the best practical choice for sorting because it is
remarkably efficient on the average: its expected running time is O(n logn) and the constant factors hidden in the
notation O(n logn) are quite small.
QuickSort