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

  1. 7

    Network Flow

    Ready this week

    Maximum 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.

  2. 1

    Stable Matching

    Planned

    Gale–Shapley, step by step, with proposals and engagements.

  3. 2

    Basics of Algorithm Analysis

    Planned

    Growth rates, running time, priority queues.

  4. 3

    Graphs

    Planned

    BFS, DFS, connected components, bipartite graphs, DAGs.

  5. 4

    Greedy Algorithms

    Planned

    Interval scheduling, shortest paths, minimum spanning trees, clustering, Huffman codes.

  6. 5

    Divide and Conquer

    Planned

    Mergesort, counting inversions, closest pair, fast multiplication.

  7. 6

    Dynamic Programming

    Planned

    Weighted interval scheduling, knapsack, sequence alignment, shortest paths with negative edges.

  8. 8

    NP and Computational Intractability

    Planned

    Polynomial-time reductions, NP-completeness.

  9. 9–13

    Further topics

    Planned

    PSPACE, extending tractability, approximation algorithms, local search, randomized algorithms.