SUNY Geneseo Department of Computer Science


Mergesort

{Date}

CSci 240, Spring 2007
Prof. Doug Baldwin

Return to List of Lectures

Previous Lecture

Misc

Hour Exam 2

Solution to Lab 6 posted

Questions?

Merge sort?

[Array {1,2,3,5,5,7,8,13}]

What if there are an odd number of data items?

Lab

Improve your word-count-by-sorting program to run in O( w logw ) time, where w = total number of words in the document.

Next

Performance of Mergesort

Read section 10.4.3


Next Lecture