CS 5800, Northeastern University
Last updated Fall 2026
This page includes lecture materials for an introductory graduate course on the theory of algorithms. The lectures closely follow Algorithm Design by Kleinberg and Tardos, but also include topics from Introduction to Algorithms by Cormen, Leiserson, Rivest and Stein. The lecture notes are intended to pair with the Kleinberg and Tardos companion slides made by Kevin Wayne. I have made some additional slides which are posted below. I also run an optional advanced algorithm session outside of class each week and those materials are labelled (adv). Each semester, I also hold additional reviews of relevant topics from discrete mathematics, and these resources are listed below.
Introduction to Algorithms.
Algorithm Analysis. Big O, Omega, and Theta notation. Comparison of common runtimes. Insertion sort algorithm and runtime analysis.
Lecture notes (following Kevin Wayne's Algorithm Analysis slides)
Radix sort (adv)
Graph Algorithms. Graph definitions and structures. Traversal algorithms (BFS, DFS) pseudocode, data structures, runtime analysis. Bipartite testing. Strong connectivity testing. Directed graphs and strong connectivity. DAGs and topological sorting.
Lecture notes (following Kevin Wayne's Graphs slides)
Tarjan's algorithm for strongly connected components (adv)
Greedy Algorithms (1). Greedy algorithms for interval scheduling, interval partitioning, minimum lateness scheduling. Greedy-stays-ahead, structural, and exchange arguments for greedy optimality.
Lecture Notes (following Kevin Wayne's Greedy Algorithms I slides)
Gale-Shapley algorithm for stable matching (adv)
Greedy Algorithms (2). Dijkstra's algorithm for single source shortest paths. Prim's and Kruskal's algorithms for constructing minimum spanning trees. Union find data structure.
Lecture notes (following Kevin Wayne's Greedy Algorithms II slides)
Huffman encoding (adv)
Divide and Conquer Algorithms. Mergesort, counting inversions, quicksort, randomized selection/median finding. Recurrence relations, recurrence trees, induction proofs, master theorem for solving recurrences.
Lecture notes (following Kevin Wayne's Divide and Conquer I slides)
Dynamic Programming (1). Weighted interval scheduling, maximum subarray, segmented least squares, knapsack. Bellman equations, dynamic programming vs naive recursion.
Lecture notes (following Kevin Wayne's Dynamic Programming I slides)
Knuth's algorithm for optimal binary search trees (adv)
Dynamic Programming (2). Sequence alignment, longest common subsequence, Bellman-Ford algorithm for single source shortest paths, detecting and finding negative cycles.
Lecture notes (following Kevin Wayne's Dynamic Programming II slides)
Floyd-Warshall algorithm for all pairs shortest paths (adv)
Network Flow. Maximum flow problem. Reductions to maximum flow: minimum cut (via residual networks), bipartite matching, minimum number of edges to remove to disconnect source from sink, counting disjoint paths, multiple source/sinks, image segmentation.
Lecture notes (following Kevin Wayne's Network Flow I and Network Flow II slides)
Preflow-push (push-relabel) algorithm for maximum flow (adv)
Intractability. Polynomial time reductions: independent set to vertex cover, vertex cover to independent set, vertex cover to set cover, 3SAT to independent set. P, NP, and NP-Completeness.
Lecture notes (following Kevin Wayne's Intractability I and Intractability II slides)
NP completeness of graph coloring (adv)
Approximation Algorithms and Linear Programming. Load balancing greedy approximation, vertex cover greedy approximation, intro to linear programming, network flow LP formulation, weighted vertex cover approximation via LP rounding
Lecture notes (following Kevin Wayne's Approximation Algorithms and Linear Programming slides)
Knapsack epsilon-approximation (adv)
Precedence-constrained scheduling approximation (adv)
Randomized Algorithms. Contention resolution, global minimum cut, Max-3SAT approximation, load balancing approximation with Chernoff bounds.
Lecture notes (following Kevin Wayne's Randomized Algorithms slides)
Additional slides
Randomized closest pair of points algorithm (adv)
Outro.
Mathematical Review. Each semester I run optional sessions outside of class to reiterate prerequisite material with students. There are four sessions held over the first four weeks of class, covering the following material. The goal is to provide a refresher for students who may have been weak in discrete mathematics, or took the class a long time ago.
Basic data structures. Arrays, linked lists, stacks queues, binary trees, binary search trees, hash tables, min heaps.
Summations. Sum of the first n positive integers, sum of the first n squares, sum of the first n powers of 2, geometric series.
Proofs. Direct proof, proof by contradiction, counterexamples, proof by induction.
Probability. Sample spaces, events, random variables, independence, expected value, linearity of expectation.
Instructors. If you are using the textbook or Kevin Wayne's slides , feel free to email me for the tex files of any material posted here.