Algorithms and Data Structures, Fall 2011

Taught by Rasmus Pagh.

This page contains the publicly available materials for the course.
Access to further resources is available to registered students in LearnIT.
See also the official course description.

We will be using the Algorithms, 4th edition, textbook by Sedgewick and Wayne (SW). Literature in parenthesis is not in the curriculum (and should not contain essential new things), but we recommend that you review it since this is assumed knowledge for the rest of the course.

DateTopicLiteratureExercises
29/8Introduction (slides)(SW 1.1), SW 1.4handout, SW 1.4.4, 1.4.5, 1.4.6, 1.4.8, 1.4.10, 1.4.12, 1.4.15, 1.4.24 (hints)
5/9Stacks and queues (slides, code)(SW 1.2), SW 1.3handout, data, SW 1.3.2, 1.3.5, 1.3.6, 1.3.19, 1.3.20, 1.3.27, 1.3.28, 1.3.32, 1.3.47
12/9Recursion and sorting (slides, code)SW 2.1, 2.2, 2.3handout, SW 2.1.6, 2.1.7, 2.1.15, 2.2.4, 2.3.5, 2.3.8, 2.3.15
19/9Trees and search trees (slides)SW 3.1, 3.2work on hand-in and past exercises
26/9No activities
3/10Balanced trees; hashing (slides, code)SW 3.3, 3.4, PR04 until sec. 2.1handout, SW 3.2.6, 3.3.1, 3.3.4, 3.3.9, 3.3.16, 3.4.4, 3.4.10, 3.4.13.
10/10Case studies on sorting and searching (slides)SW 2.5, 3.5work on hand-in and past exercises
17/10Autumn break
24/10Priority queues (slides)SW 2.4, BFJ02 sec. 1.0, 2handout, SW 2.4.2, 2.4.3, 2.4.4, 2.4.9, 2.4.12, 2.4.13, 2.4.16
31/10Basic graph search (slides)SW 4.1, 4.2 until p. 583handout, SW 4.1.1, 4.1.16, 4.1.23, 4.2.22, 4.2.30
7/11Shortest paths (slides)SW 4.4slash maze, last problem from this old exam, SW 4.4.1, 4.4.14, 4.4.15, 4.4.23, 4.4.25, 4.4.28
14/11Case studies on graphs (slides)multiple-choice part of June 2010 exam (page 5-6); work on hand-in
21/11Radix sorting and digital search (slides, code)SW 5.1, 5.2January 2011 exam
28/11Trial exam
5/12Guest lecture by Jesper Larsson: Data compression (slides)SW 5.5

Hand-ins


Previous exams

Some exams include discrete mathematics, not directly addressed in this course.
Multiple choice style: June 2011 (will be used for trial exam) (answers), January 2011 (answers), June 2010 (answers), Trial exam, May 2010.
Oral exam style: Fall 2008 + spring 2009, Fall 2009, Spring 2011 (selected solutions).