|
|
|
|
|
Computer Science 252 |
|
|
|
| New / Messages |
Kenneth Xu has kindly agreed to share a link to his red-black tree visualizer. Let me formalize what I said earlier today about the midterm. If your raw grade shown on your copy was x out of 100, then we will record the grade y = (3/5) x + (2/5) 100 in our books. If your final grade in April is z (out of 100), then we will replace y by max(y,z) in our files. |
| Instructor |
Luc Devroye |
Email to lucdevroye@gmail.com |
McConnell Engineering Building, Room 300N |
Office hours for the Winter 2026 term:
|
| Time and location |
Tuesday & Thursday, 1-2:30 pm, Stewart Biology Building (STBIO) N2/2. |
| On the web |
Link to myCourses for the Winter 2026 edition. We will not use myCourses for anything. |
| Special situations |
If you write a supplemental or deferred final exam, then that exam will count for 100% towards your grade---midterms and assignments will be irrelevant. If you miss the midterm, then you will be given an oral examination within a few days. |
| Teaching assistants |
The teaching assistants will meet in McConnell 310/311.
|
| Lectures (2026) |
Material covered in each lecture in 2026 (file updated as we move along). For reference: Material covered in each lecture in 2025. |
| Objectives |
|
| Contents |
Part 1. Data types.
Part 2. Algorithm design and analysis.
|
| Evaluation |
Assignments: 25%, midterm: 25%, final: 50%. Rubric: the assignments are theoretical (no programming involved) and are judged on correctness, insight, originality and readability. The midterm and final are judged on correctness and clarity of the answers. All assignments will be written by hand and returned in class. |
| Prerequisites |
Computer Science 250. Mathematics 240 or Mathematics 235. Recommended background: Mathematics, discrete mathematics, arguments by induction. Restricted to Honours students in Mathematics and/or Computer Science. |
| Textbook |
T.H. Cormen, C.E.Leiserson, R.L.Rivest, and C. Stein: Introduction to Algorithms (Fourth Edition), MIT Press, Cambridge, MA, 2022. The Third Edition of this book, published in 2009, is almost equivalent. Github offers pages with solutions of most exercises. Another appropriate text, with a different focus (more algorithms, fewer data structures) is by J. Kleinberg and E. Tardos: "Algorithm Design". Pearson, Boston, 2006. Finally, scribes in 2017, 2018, 2019, 2020, 2022, 2023, 2024 and 2025 made notes on the following topics:
|
| Information for the scribes |
We will use LaTeX to first create a TeX file (for the body of the text) and a bib file
(for bibliography), and then create a PDF file from this.
The prototypes below are courtesy of Ralph Sarkis.
|
|
|
|