INF2-IADS: Schedule and Course Materials for Semester 2 (Spring 2026)


Week (commencing)DateEventLecturerTopicReading
 1   (12 Jan)Tue 13 JanLecture 16Mary

 

Lecture 16 - Graphs III: Dijkstra's Algorithm

pre-recorded video from 2021/22 

[CLRS] (ed 4), 22.2, 22.3, 22.5 

OR

[Roughgarden] 9.1, 9.2, and (faster Heap impl) 10.4, 10.5

 

Fri 16 JanLecture 17Mary

Lecture 17 - Introduction to Greedy Algorithms

new lecture - no pre-recorded video

[CLRS] (ed 4) 15.1 (general), 22.4 (proof of Dijkstra)

[Roughgarden] 13.1 (general), 9.3 (proof of Dijkstra)

2 (19 Jan)Tue 20 JanLecture 18Mary

Lecture 18 - Introduction to Dynamic Programming

pre-recorded video from 2020/21

[Roughgarden] 16.4, "general principles of DP"

[Kleinberg and Tardos] 6.2

J.W. Wright "The change-making problem", J ACM 1975.

Fri 23 JanLecture 19Mary

Lecture 19 - Seam Carving (by dynamic programming)

seam carving video

The original "Seam Carving" paper is here.
InfBase for helpLabsheet 4 

Lab Sheet 4: Greedy Algorithms (and some dynamic programming)

dijkstra.py (as txt), coin_changing.py (as txt), 7nodes (as .txt)

solutions (as .txt): coin_changing_sol, dijkstra_sol

 
3 (26 Jan)Multiple datesTutorial 1 

Tutorial 6 - Greedy and Dynamic Programming

Solutions, slides

 
Tue 27 JanLecture 20Mary

Lecture 20 - Edit Distance

pre-recorded video from 2020/21

Sequence alignment: 

[KT] 6.6

[CLRS] 14.4

[Roughgarden] 17.1

Fri 30 JanLecture 21Mary

Lecture 21 - Probabilistic FSMs and Maximum Likelihood Estimation

pre-recorded video from 2020/21

No texts for this topic!
InfBase for helpLabsheet 5 

Lab Sheet 5: Edit distance

Solution (in .txt)

 
available Wed 28Quiz 3 

DUE 12 NOON Mon 2nd Feb

(to be completed)

 
4 (2 Feb)Multiple datesTutorial 2 

Tutorial 7 - Dynamic Programming

Solutions, slides

 
Tue 3 FebLecture 22John 

Lecture 22 - Context-Free Languages and Grammars

Pre-recorded video version (including song)

M. Sipser, Introduction to the Theory of Computation (3rd ed.), Section 2.1. Available online from UoE library.

Wikipedia article on Context-free grammar

Fri 6 FebLecture 23John

Lecture 23 - CYK Parsing for Context-Free Languages

Pre-recorded video version

Other resources as listed on slides.
5 (9 Feb)Multiple datesTutorial 3 

Tutorial 8 - CFGs and Parsing Algorithms 

Solutions, slides

 
Tue 10 FebLecture 24John

Lecture 24 - Predictive Parsing

Pre-recorded video version

 

 
Fri 13 FebLecture 25Mary

Exam prep lecture (11am):
Mary's slides (and audio) - John's slides (and audio)

Lecture 25 - P and NP

pre-recorded video from 2020/21

Hackerdashery video for inspiration

[CLRS] Chapter 34 intro, 34.1, 34.2, 34.3 (early part)  OR

[Roughgarden] 19.2, 19.3, 19.5, 19.6  OR

[KT] 8.1, 8.2, 8.4.

Scott Aaronson "P vs NP" paper

Fri 13 FebCoursework 2 released 

DUE 12 NOON Tuesday 10th March

(to be submitted)

 
6 (23 Feb)Tue 24 FebLecture 26Mary 

Lecture 26 - Satisfiability and NP-completeness

pre-recorded video from 2020/21


[Roughgarden] 22.1, 22.2, 22.3, 22.4, 22.5.  OR 

[KT] 8.3.
 

Fri 27 MarLecture 27Mary

Lecture 27 - Dealing with NP-completeness (Approximation Algorithms)

pre-recorded video from 2020/21

[KT] 13.3, 13.3  

OR

[CLRS] 35.4

Available Wed 25Quiz 3 

DUE 12 NOON Mon 2nd March

(to be completed)

 
7 (2 Mar)Multiple datesTutorial 4 

Tutorial 9 - NP-completeness and Approx Algorithms

Solutions, slides

 
Tue 3 MarLecture 28Mary

Lecture 28 - Dealing with NP-completeness (Recursive backtracking)

pre-recorded video from 2020/21

No texts for this topic.
Fri 6 MarLecture 29John 

Lecture 29 - Intro to Computability Theory

pre-recorded video from 2020/21

M. Sipser, Introduction to the Theory of Computation (3rd ed.), Chapter 3. Available online from UoE library
multiple datesDrop-in Lab (AT-4.12) (for assistance with coursework 2) 
8 (9 Mar)Multiple datesTutorial 5 

Tutorial 10 - Register machines and computability

Solutions

 
Tue 10th MarLecture 30John

Lecture 30 - Unsolvable Problems

pre-recorded video from 2020/21

 
multiple datesDrop-in Lab (AT-4.12) (for assistance with coursework 2) 
Wed 11th onwardsQuiz 5 

DUE 12 NOON Mon 16th March

(to be completed)

 

 

 

 

 

License
All rights reserved The University of Edinburgh