Skip to main content

CPSC 221: Basic Algorithms and Data Structures

Instructors: Cinda Heeren (Section 101) · Nathan Harms (Section 102)

Contact
cheeren@cs.ubc.ca (Cinda Heeren)
nharms@cs.ubc.ca (Nathan Harms)
Tuesday 10:30–11:30 AM ICCS 233 (Cinda Heeren)
Monday 4:00–5:00 PM ICCS X465 (Nathan Harms)

Lectures
101: MWF 2:00 PM, FSC 1005
102: MWF 3:00 PM, FSC 1005

Schedule

Week Mon
M
W
F
HW/PA Lab
EX
Part 1: Reasoning About Code
1 Sep 7
2 Sep 14
Part 2: Classic Data Structures
3 Sep 21 HW1
4 Sep 28
5 Oct 5 PA1
6 Oct 12
7 Oct 19 HW2
8 Oct 26
9 Nov 2 PA2
10 Nov 9
11 Nov 16
Part 3: Graph Algorithms
12 Nov 23 PA3
13 Nov 30
14 Dec 7 HW3
Week Mon
M
W
F
HW/PA Lab
EX
Part 1: Reasoning About Code
1 Sep 7
2 Sep 14
Part 2: Classic Data Structures
3 Sep 21 HW1
4 Sep 28
5 Oct 5 PA1
6 Oct 12
7 Oct 19 HW2
8 Oct 26
9 Nov 2 PA2
10 Nov 9
11 Nov 16
Part 3: Graph Algorithms
12 Nov 23 PA3
13 Nov 30
14 Dec 7 HW3
Part 1: Reasoning About Code
Wed Sep 9 Introduction
Fri Sep 11 Reasoning About Algorithms
Mon Sep 14 Running Time
Wed Sep 16 Correctness
Fri Sep 18 Loop Invariants
week 2 Lab 1
Part 2: Classic Data Structures
Mon Sep 21 Selection Sort
Wed Sep 23 Insertion Sort
Fri Sep 25 Linked Memory
week 3 Lab 2
week 3 HW1
week 3 Examlet 1
Mon Sep 28 Linked Lists
Fri Oct 2 The List ADT
week 4 Lab 3
week 4 Examlet 2
Mon Oct 5 Stacks
Wed Oct 7 Queues
Fri Oct 9 Merge Sort
week 5 Lab 4
week 5 PA1
week 5 Examlet 3
Wed Oct 14 Sorting Complexity
Mon Oct 19 Trees
Wed Oct 21 Tree Traversals
Fri Oct 23 Level Order, and Dictionaries
week 7 Lab 5
week 7 HW2
week 7 Examlet 4
Mon Oct 26 Binary Search Trees
Wed Oct 28 BST Removal, and Why Balance Matters
Fri Oct 30 Balanced Trees
week 8 Lab 6
week 8 Examlet 5
Mon Nov 2 Balanced Trees, and B-Trees
Wed Nov 4 B-Trees, and Hashing
Fri Nov 6 Lecture 23
week 9 Lab 7
week 9 PA2
week 9 Examlet 6
Fri Nov 13 Lecture 24
Mon Nov 16 Priority Queues
Wed Nov 18 Priority Queues, continued
Fri Nov 20 buildHeap analysis, heapSort
week 11 Lab 8
week 11 Examlet 7
Part 3: Graph Algorithms
Mon Nov 23 Graphs: Examples and Definitions
Wed Nov 25 Graphs: Definitions and Implementation
Fri Nov 27 Disjoint Sets
week 12 Lab 9
week 12 PA3
week 12 Examlet 8
Mon Nov 30 Graph Traversal: Whatever-First Search
Wed Dec 2 Depth-First Search; Dijkstra’s Shortest Paths
Fri Dec 4 Minimum Spanning Trees; Prim’s Algorithm
week 13 Lab 10
week 13 Examlet 9
Mon Dec 7 Lecture 34
week 14 HW3
Part 1: Reasoning About Code
Wed Sep 9 Introduction
Fri Sep 11 Reasoning About Algorithms
Mon Sep 14 Running Time
Wed Sep 16 Correctness
Fri Sep 18 Loop Invariants
week 2 Lab 1
Part 2: Classic Data Structures
Mon Sep 21 Selection Sort
Wed Sep 23 Insertion Sort
Fri Sep 25 Linked Memory
week 3 Lab 2
week 3 HW1
week 3 Examlet 1
Mon Sep 28 Linked Lists
Fri Oct 2 The List ADT
week 4 Lab 3
week 4 Examlet 2
Mon Oct 5 Stacks
Wed Oct 7 Queues
Fri Oct 9 Merge Sort
week 5 Lab 4
week 5 PA1
week 5 Examlet 3
Wed Oct 14 Sorting Complexity
Mon Oct 19 Trees
Wed Oct 21 Tree Traversals
Fri Oct 23 Level Order, and Dictionaries
week 7 Lab 5
week 7 HW2
week 7 Examlet 4
Mon Oct 26 Binary Search Trees
Wed Oct 28 BST Removal, and Why Balance Matters
Fri Oct 30 Balanced Trees
week 8 Lab 6
week 8 Examlet 5
Mon Nov 2 Balanced Trees, and B-Trees
Wed Nov 4 B-Trees, and Hashing
Fri Nov 6 Lecture 23
week 9 Lab 7
week 9 PA2
week 9 Examlet 6
Fri Nov 13 Lecture 24
Mon Nov 16 Priority Queues
Wed Nov 18 Priority Queues, continued
Fri Nov 20 buildHeap analysis, heapSort
week 11 Lab 8
week 11 Examlet 7
Part 3: Graph Algorithms
Mon Nov 23 Graphs: Examples and Definitions
Wed Nov 25 Graphs: Definitions and Implementation
Fri Nov 27 Disjoint Sets
week 12 Lab 9
week 12 PA3
week 12 Examlet 8
Mon Nov 30 Graph Traversal: Whatever-First Search
Wed Dec 2 Depth-First Search; Dijkstra’s Shortest Paths
Fri Dec 4 Minimum Spanning Trees; Prim’s Algorithm
week 13 Lab 10
week 13 Examlet 9
Mon Dec 7 Lecture 34
week 14 HW3

slides   recording   lab (PrairieLearn)   book a seat (PrairieTest)   practice problems (PrairieLearn)

Faded icons mark material that isn’t posted yet.