Lecture 35
Learning objectives
After this class, you should be able to:
- Given data to be sorted, show the data after each step of quicksort.
- Explain the advantages and disadvantages of different types of pivot choces for quicksort.
- Derive the best case and worst case time complexities for quicksort.
- Give the average case time complexity for quicksort.
Reading assignment
- Section 7, section 7.7.
- Lecture: Sorting.
Exercises and review questions
- Exercises and review questions on current lecture's material
- Show the steps involved in sorting the following data using quicksort with the median of three partitioning:
16 14 10 8 7 9 3 2
.- Show the steps involved in sorting the following data using quicksort with the median of the first element as pivot:
16 14 10 8 7 9 3 2
.- Questions on next lecture's material
- None.
Last modified: 29 Nov 2011