Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

CS 3401 – Algorithm Design and Analysis

Course map

One row per chapter. Open the chapter page for what you will learn and for the slides, which you can read on the page, present full screen or download.

#ChapterMain topicsSlidesWorked examples
1IntroductionWhat an algorithm is, correctness, efficiency, the design techniques28
2Algorithm AnalysisO, Ω and Θ, analysing loops, recurrences25Maximum subsequence sum, Exponentiation
3Brute Force and Exhaustive SearchBrute-force sorting and string matching, closest pair, TSP, knapsack21Convex hull
4Decrease & Conquer and Divide & ConquerInsertion sort, topological sorting, quickselect, mergesort, quicksort36Subsets, Permutations
5Transform and ConquerPresorting, AVL trees, 2-3 trees, heaps and heapsort, problem reduction103
6Dynamic ProgrammingCoin problems, 0-1 knapsack, optimal BSTs, Warshall and Floyd61
7Greedy AlgorithmsActivity selection, Prim, Kruskal, Dijkstra, Huffman coding51

Student projects

Course description

This course introduces formal techniques to support the design and analysis of algorithms, focusing on both the underlying mathematical theory and practical considerations of efficiency. Topics include correctness of algorithms, asymptotic notation, recurrences and Master theorem, divide and conquer, transform and conquer (Balanced Trees), time-space trade-offs, median and order statistics, searching and sorting algorithms, dynamic programming, greedy algorithms, randomized algorithms, recursive backtracking, computational geometry, string matching. Optional material: NP-completeness, competitive analysis, branch-and-bound, amortized analysis and approximation algorithms.

Course requirements

Textbook

Title: “Introduction to the Design and Analysis of Algorithms”
Author: Anany V. Levitin
Publisher: Pearson 2011
Year/Edition: 2011