Home / COMP2870

COMP2870

Theoretical Foundations of Computer Science II

Graph algorithms weeks 1–3

Based on the 2026/27 lecture notes by K. Vušković.

Primer

Lecture 1 · Terminology · Lemmas 2.1–2.2 · Prim & Kruskal · Dijkstra & Floyd–Warshall · Ford–Fulkerson · Matchings · Self-test

Maths refresher

Sets · Set-builder · Logic · Quantifiers · Proof methods · Big-O

Proof trainer

The ladder: foundations → cut-edge → Lemmas 2.1–2.2 → Prim → Kruskal → Dijkstra → Floyd–Warshall. Build-up, every line animated, memory mode, notation writing.

Why Prim works

Theorem 2.4, explained step by step, with animations.

Why Dijkstra works

Shortest paths, the distG[T] notation decoded, and Theorem 3.1 step by step, with animations.

Worksheet 1.1, explained

What each exercise tests, how to approach it, tiered hints and worked answers (formative exercises only).

Notation worksheet

Translate, compute, and write proof sentences. Most of it checks itself.

Linear algebra weeks 4–7

Based on the 2026/27 notes by T. Ranner.

Primer

Multiplying · Determinant · Gaussian elimination · LU · Pivoting · Jacobi & Gauss–Seidel · Complex numbers · Eigenvalues · QR · Exam algorithms

Later topics will show up here.