The 18 lectures fit a semester of 14 weeks with one lecture and one computing session a week. In the weeks with two notebooks, the first is the lecture and the second is worked in the computing session.
For whom. Students in the second or third undergraduate year of engineering or the physical sciences, graduate students who want a systematic account of these methods, and engineers who write numerical code.
Prerequisites. Calculus, a little linear algebra and probability, and Python with NumPy.
| Week | Subject | Lectures |
|---|---|---|
| 1 | Floating-point numbers, cancellation and compensated summation | 0 |
| 2 | Dimensional analysis and the Buckingham Pi theorem | 1 |
| 3 | Loop invariants, state machines and conservation as code contracts | 2 |
| 4 | Measuring cost; prefix sums, monotonic queues and cell lists | 3 |
| 5 | Divide and conquer; binary search on the answer | 4 |
| 6 | Quadtrees and the FFT | 5 |
| 7 | Dynamic programming | 6 |
| 8 | Decisions under uncertainty; greedy algorithms | 7, 8 |
| 9 | Shortest paths and A* | 9 |
| 10 | Exact cover; critical paths and flows | 10, 11 |
| 11 | Information and diagnosis; data streams | 12, 13 |
| 12 | Percolation; traffic and flocking | 14, 15 |
| 13 | Random search and testing without a reference answer | 16 |
| 14 | Closing project | 17 |
Assessment. The three exercises of each lecture are of increasing difficulty: the first verifies a result of the lecture, the second looks for a way in which a method or a common shortcut fails, and the third asks for a function written by the student and checked against the package or an exhaustive search. A course can use the first two as weekly homework and a selection of the third as a portfolio. Worked solutions to all exercises are in the book.
The closing project (Lecture 17) uses a fictional scenario with synthetic data and assumed aircraft parameters. A course can replace the terrain, the stations or the aircraft by data chosen by the students.