CMPT 125 - Introduction to Computing Science and Programming II - Spring 2026

Course Information Syllabus Lectures Assignments Exams


Tutorial 08 - March 20
Binary Trees
Week 10 - March 18-20
Introduction to Graphs
Introduction to Trees
Binary Trees
Tree traversals
Breadth First Search
Practice Problems

Lab Exam - March 13

Week 09 - March 11-13
Introduction to data structures
Linked List
- Variants: Doubly Linked List
- Implementing stack/queue using a linked list
Comments on recursion
Tutorial 07 - March 06
A data structure representing python-style list

Midterm Exam - March 06

Week 08 - March 04
Introduction to data structures
Stack
Queue
- Implementation stack/queue using an array
Linked List
- Implementing stack/queue using a linked list
- Variants: Doubly Linked List
Tutorial 06 - February 27
Sorting algorithms
Measuring performance of a program
Week 07 - February 25-27
Quick sort
More on Big-O notation
February 16-22 - Reading Break
Tutorial 05 - February 13
Dynamic memory allocation
Measuring performance of a program
Week 06 - February 11-13
Big-O notation
Search algorithms
Sorting algorithms
- Selection sort
- Insertion sort
- Merge sort
qsort()
void*
Tutorial 04 - February 06
Binary representation of integers and floats
Week 05 - February 04-06
More random topics:
- Quine program
- ANSI escape codes
Pseudo-code
Recursion:
- Fibonacci sequence
- Binary search
- Merge sort
- Flood fill algorithm
Measuring performance of algorithms
Big-O notation
Tutorial 03 - January 30
file I/O
Week 04 - January 28-30
Type casting
enum/typedef/struct
Returning structs
2-d arrays
Pointers to functions
More random topics:
- Quine program
Tutorial 02 - January 23
Passing arguments to main()
Redirecting stdin and stdout
Reading letters from input and calculating the frequencies
Week 03 - January 21-23
Strings
Initializing arrays and strings
scanf()
Memory allocation
Execution stack
Return values and conditions
Global variables
Static variables
Macros
Tutorial 01 - January 16
Basic commands in Linux
Configuring Visual Studio Code
Writing hello_world.c
Running/Debugging using VScode
Compile in terminal using gcc
Week 02 - January 14-16
Arrays
Constant variables
Strings
Week 01 - January 7-9
Introduction to C
Variables and strong typing
Data vs address
Pointers and references
Arrays