Week 4

Lectures

Lecture 1 (optional)

The first lecture descibed the shell sort. You professor may choose to skip this lesson if the class needs extra time on other methods.

Lecture 2

The second lecture describes the quick sort. Sorting is a useful tool in learning to program because it is easy to see when it is working, but, expecially for the more efficient sorting methods, it is complicated to implement.

Lecture 3

The third lecture covers merge sort, another eficient sorting method.

Tutorial and Lab

Tutorial

The tutorial contains questions from which the quiz, the sessionals and the final will be selected. It contains question on the advanced sorting techniques: shell, quick and merge sorts.

Lab

In this lab you will demonstrate matrix the bubble, insertion and selection sorts.

Remember to download the files for next week using "wget ds.nathanielgmartin/wk4-arrays.zip".

Backlog

Arrays Backlog

This is the backlog you will be working from this week.