Teaching / Algorithm Design
Course
Algorithm Design
FTU · Undergraduate
Animations and interactive visualisations for the course. The course follows Kleinberg and Tardos, Algorithm Design, and the lecture slides by Kevin Wayne (Princeton) are excellent. These pages add what a static slide cannot: you can run the algorithm one step at a time, change the input, break it, and see why it works. I am putting the most effort into the later chapters, where the ideas are hardest to see.
Work in progress. I am building this chapter by chapter, in the order of the lectures. Network Flow comes first because it is the topic being taught this week. The other chapters will be filled in gradually; the roadmap below shows what is ready and what is planned.
Book and slides: Kleinberg–Tardos lecture slides (Kevin Wayne, Princeton).
Roadmap
-
7
Network Flow
Ready this weekMaximum flow and minimum cut, the algorithms that compute them, and the problems that reduce to them.
Part I (ready): flows and residual networks, Ford–Fulkerson, shortest augmenting path, capacity scaling, Dinitz, min-cut and the max-flow min-cut theorem. Part II (ready): bipartite matching and Hall’s theorem, edge-disjoint paths and Menger, project selection, image segmentation, baseball elimination, circulation with demands. Part III (ready): the assignment problem, prices and reduced costs, successive shortest paths.
- 1
Stable Matching
PlannedGale–Shapley, step by step, with proposals and engagements.
- 2
Basics of Algorithm Analysis
PlannedGrowth rates, running time, priority queues.
- 3
Graphs
PlannedBFS, DFS, connected components, bipartite graphs, DAGs.
- 4
Greedy Algorithms
PlannedInterval scheduling, shortest paths, minimum spanning trees, clustering, Huffman codes.
- 5
Divide and Conquer
PlannedMergesort, counting inversions, closest pair, fast multiplication.
- 6
Dynamic Programming
PlannedWeighted interval scheduling, knapsack, sequence alignment, shortest paths with negative edges.
- 8
NP and Computational Intractability
PlannedPolynomial-time reductions, NP-completeness.
- 9–13
Further topics
PlannedPSPACE, extending tractability, approximation algorithms, local search, randomized algorithms.