Overview
The objective of this course is to introduce students to data structures (linked lists, binary search trees, hash tables), Abstract Data Types (Stacks, Queues, Maps, Sets, Graphs), algorithms (sorting, graph search, minimal spanning tree) and algorithms design techniques(greedy, divide and conquer, dynamic programming, etc) Prereq: ECE 150 (or equivalent)
Instructor
Ziqiang Patrick Huang <ziqiang.huang@uwaterloo.ca>
Office Hours
- My office: E7-5424
- Tuesday 10:30 - 11:30 or by appointment
- Different hours will be announced for midterm week and the exam period
Lab Instructor
Mike Cooper-Stachowsky (mstachowsky@uwaterloo.ca)
Teaching Assistants
Majid Dashtbani (majid.dashtbani@uwaterloo.ca)
Sara Ahmad (s92ahmad@uwaterloo.ca)
Soheil Khatibi (skhatibi@uwaterloo.ca)
Caleb Lam (caleb.lam@uwaterloo.ca)
Zahra Khotanlou (zkhotanlou@uwaterloo.ca)
Lectures, tutorials, labs
For lecture, tutorial and lab schedules, see the Undergraduate Schedule of Classes.
Makeup Lectures
We have 5 makeup lectures tetatively scheduled throughout the term. Whether they will be used will depend on the pace of the course. Students will be notified (in class & through emails) beforehand if we intend to use any of them.
Tutorials
We will walk through example problems that help students strengthen their understanding of lecture materials and prepare for exams. (Tutorials will start from the 2nd week)
Discussion Forum
We will use Piazza for class discussions. The system is highly catered to getting you help fast and efficiently from classmates, the TAs, the lab instructor, and myself. Rather than emailing questions to the teaching staff, you should post your questions on Piazza. The Piazza course site is here. (Access code will be posted on Learn)
Textbook
We will be mostly using lecture notes posted on Learn, however, students are encouraged to use the following optional texts to supplement their learning:
Mark Allen Weiss, Data Structures and Algorithm Analysis in C++, 4th Ed., Addison Wesley, 2012.
Cormen, Leiserson, Rivest, and Stein (CLRS), Introduction to Algorithms, 2nd Ed., MIT Press, 2001.
Grading
Lab Projects: 20%Projects
There will be 5 projects in the course. Each project will be given about 2 weeks to finish. Projects are done individually. Details about the projects will be posted on Learn.
| Release date | Due date | Weight | |
| P1 | Jan 7 | Jan 21 | 10% |
| P2 | Jan 21 | Feb 4 | 15% |
| P3 | Feb 4 | Mar 4 | 25% |
| P4 | Mar 4 | Mar 18 | 20% |
| P5 | Mar 18 | April 1 | 30% |
Lab Quizzes
For Lab 3 and Lab 5, your regular labs will be replaced by in-person lab quizzes held in your assigned lab room. Quizzes are two hours long and begin exactly one hour into your scheduled lab (9:30 AM for morning sessions and 2:30 PM for afternoon sessions). You will be required to develop and submit a working program that will be evaluated through automated testing. You will be provided with sample test files and any necessary starter code. The topics of the quizzes will be announced well in advance. While lab computers will be locked down to prevent access to digital files or the internet, you are permitted to use any non-electronic resources, such as textbooks, printed notes, and handwritten code samples. For students who require accommodations via Accessibility, please ensure you arrange the timing in advance.
Exams
The midterm exam is currently scheduled on Monday, February 23, at 10:00 am. The final exam schedule will be posted once available. Both will be closed-book exams.
Bonus Marks
You may earn up to 1.5 bonus marks in total, which will be added to your final course grade. The opportunities are as follows:
- Piazza Participation: Earn 0.1 marks for each question/answer endorsed by an instructor on Piazza, up to a maximum of 0.5 marks. (Please keep a record yourself)
- Academic Improvement: Earn 0.5 marks if your final exam score is at least 10 percentage points higher than your midterm exam score (e.g., improving from 60% on the midterm to 70% or higher on the final).
- Course Feedback: Earn 0.5 marks if the section's overall response rate on the Student Course Perception Survey is 70% or higher. This bonus is awarded to everyone in the section if the target is met.
Late / Missed Content
- Midterm Exam: With a valid, documented reason for absence, the midterm's weight will be transferred to the final exam. There are no make-up midterms.
- Final Exam: Students who miss the final exam for a valid, approved reason will receive an INC (Incomplete) grade and will write the exam the next time the course is offered.
- Lab Work: Late lab work (projects & quizzes) will not be accepted without documentation submitted via appropriate UW channels. 48-hour self-declared absence cannot be applied to LAB components per UW policy.
Assignment Screening
Plagiarism detection software such as MOSS (https://theory.stanford.edu/~aiken/moss/) WILL be used for lab code.
Tentative Course Schedule
| Week of | Labs |
Lecture Topics |
|
Jan 6 |
Introduction and Logistics |
|
|
Jan 13 |
Lab 1 |
Algorithm Analysis & Abstract Data Types |
|
Jan 20 |
Linked Lists |
|
|
Jan 27 |
Lab 2 |
Trees, Binary (Search) Trees, Tree Traversals |
| Feb 3 |
AVL Trees, Red-Black Trees |
|
|
Feb 10 |
Lab 3 / Lab Quiz 1 |
Heaps, Priority Queues |
|
Feb 17 |
Reading Week | |
|
Feb 24 |
Midterm Week |
|
|
Mar 3 |
Hashing, Hash tables |
|
|
Mar 10 |
Lab 4 | Sorting Algorithms |
|
Mar 17 |
Introduction to Graphs, Graph Traversals |
|
|
Mar 24 |
Lab 5 / Lab Quiz 2 | Graph Algorithms |
|
Mar 31 |
Algorithm Design Techniques |