Computer Science 226
Algorithms and Data Structures
Fall 2015


Course Information | Lectures | Flipped | Assignments | Precepts | Exercises | Exams

LECTURES

Below are links to the lecture slides. Once the lecture moves above the "Lectures below have not yet been updated for Fall 2015" part of the table, no significant changes will be made.

# DATE TOPIC SLIDES READINGS STUDY DEMOS
1 9/17 Intro · Union Find  PDF   1.5   Quick-find · Quick-union · Weighted
2 9/22 Analysis of Algorithms  PDF   1.4 guideBinary search
3 9/24 Stacks and Queues  PDF   1.3 guideDijkstra 2-stack
4 9/29 Elementary Sorts  PDF   2.1 guideSelection · Insertion · h-sorting · Shuffle
5 10/1 Mergesort  PDF   2.2 guideMerging
6 10/6 Quicksort  PDF   2.3 guidePartitioning · Quick-select
7 10/8 Priority Queues  PDF   2.4 guideHeap · Heapsort
8 10/13 Elementary Symbol Tables · BSTs  PDF   3.1–3.2 guideBST
9 10/15 Geometric Applications of BSTs  PDF   guideKd tree · Interval search tree
10 10/20 Balanced Search Trees  PDF   3.3 guide2-3 tree · Red-black BST
11 10/22 Hash Tables · Symbol Table Applications  PDF   3.4–3.5   Linear probing
12 10/27 Midterm Exam      
13 10/29 Undirected Graphs  PDF   4.1 guideDFS · BFS · Connected components
14 11/10 Directed Graphs  PDF   4.2 guideDFS · Topological sort · Kosaraju-Sharir
15 11/12 Minimum Spanning Trees  PDF   4.3 guideGreedy · Kruskal · Prim
16 11/17 Shortest Paths  PDF   4.4 guideDijkstra · Acyclic · Bellman-Ford
17 11/19 Maximum Flow  PDF   6.4 guideFord-Fulkerson
18 11/24 String Sorts  PDF   5.1 guideKey-indexed counting
19 12/1 Tries  PDF   5.2 guideTrie · TST
20 12/3 Substring Search  PDF   5.3 guideKMP
21 12/8 Regular Expressions  PDF   5.4 guideNFA simulation · NFA construction
22 12/10 Data Compression  PDF   5.5 guideHuffman · LZW
23 12/15 Reductions  PDF   6.5 guide 
24 12/17 Combinatorial Search · Algorithm Design  PDF      
Lectures below have not yet been updated for Fall 2015

Readings. All readings refer to Algorithms, 4th edition by R. Sedgewick and K. Wayne unless otherwise specified.

Study guide. Associated with each lecture is a study guide, which summarizes the most important topics and ideas from the lecture. It also includes optional (and ungraded) exercises.

Advice. In general, slides are intended for the lecture presentations and do not provide thorough descriptions of the material alone; for reference, read the indicated sections from Algorithms, 4th edition. An effective strategy is to skim the textbook before the lecture, read it thoroughly soon afterwards, complete the Blackboard exercises (and perhaps some additional B-level exercises from the study guide).

Online viewing and printing. These lecture slides are suitable for online viewing (one per page) or printing (four per page). The Quicktime movies are designed to be manually advanced. Unfortunately, Quicktime on OS X no longer supports interactive Quicktime movies; we recommend using Quicktime 7 instead.

iClicker policy. Using an iClicker during lecture counts towards the participation component of your course grade. Using a classmate's iClicker during lecture or allowing someone else to use your iClicker during lecture is prohibited.

Errata. Here is a list of known errors in the lecture slides and textbook.