skip to primary navigationskip to content

Department of Computer Science and Technology

Algorithms 2

Course pages 2021–22

Algorithms 2

Course arrangements

  • Lecture notes: alg2.pdf
    (This course is a continuation of Algorithms 1, which is why the notes for Algorithms 2 start at start at Section 5, and why the lectures start at Lecture 13.)
  • Recordings The pre-recorded videos, listed below, cover all examinable material. You can watch them in your own time, but you are encouraged to keep to the schedule. The Recordings tab has YouTube playlists.
  • Live in-person sessions There is one live in-person session each week, for discussions and digressions and for sharing the ‘spirit’ of the course. This is off syllabus material, and there will be no recordings. The sessions are in New Museum Site, Lecture Theatre A, 10–11am.

Schedule

18 Feb, 10am Live in-person session: introduction [slides]
Challenge 1: fast maximum
Lecture 13
18 Feb
Lecture 14
21 Feb
5.4 Dikstra's algorithm (15:25) plus proof (24:01)
Lecture 15
23 Feb
Lecture 16
25 Feb
25 Feb, 10am Live in-person session: “not even wrong” [slides]
Challenge 2: finding order (for discussion on 11 March)
Example sheet 4 including optional tick ex4-bfs
Lecture 17
28 Feb
Lecture 18
2 Mar
Lecture 19
4 Mar
4 Mar, 10am Live in-person session: max-flow min-cut and Lagrangian optimization [slides]
Example sheet 5, plus optional tick ex5-match
Tick 3 (due 12 March)
Lecture 20
7 Mar
Lecture 21
9 Mar
Lecture 22
11 Mar
11 Mar, 10am Live in-person session: GANs and other optimizations [slides]
Tunan Shi's solution to Challenge 2 using simulated annealing
Lecture 23
14 Mar
Example sheet 6
16 Mar, 10am Live in-person session: geometry algorithms [notes]