Lecture 34
Learning objectives
After this class, you should be able to:
- Given data to be sorted, show the data after each step of mergesort.
- Derive the time complexity for mergesort.
- Analyze the characteristics of mergesort and suggest improvements to its implementation.
Reading assignment
- Section 7, section 7.6.
- 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 mergesort:
16 14 10 8 7 9 3 2
.- Improve the best case time for mergesort. If the data is almost sorted, then does this modification help?
- Can mergesort be implemented without the additional copying of data from the temporary array to the original array in each step?
- Can mergesort be implemented without a temporary array?
- Questions on next lecture's material
- None.
Last modified: 22 Nov 2011