Course or collection
Introduction to Algorithms
MIT OpenCourseWare · 32 catalogue entries
MIT OpenCourseWare · Spring 2020
Original course and syllabus ↗MIT 6.006 Introduction to Algorithms, Spring 2020
Lecture 1: Algorithms and Computation
The goal of this introductions to algorithms class is to teach you to solve computation problems and communicate that your solutions are correct and efficient. Models of computation, data structures, and algorithms are introduced. Instructor: Jason Ku
Lecture 2: Data Structures and Dynamic Arrays
Data structures are ways to store data with algorithms that support operations on the data. These collection of sorted operations are interfaces. This class goes over two main interfaces: sequence and set. Instructor: Erik Demaine
Problem Session 1
Four examples of worked problems on the asymptotic behavior of functions and double-ended sequence operations. Instructor: Jason Ku
Lecture 3: Sets and Sorting
Stored sets sorted by key allows for faster searching. This lecture covers how to construct a sorted array efficiently and the types of sorts. Instructor: Justin Solomon
Lecture 4: Hashing
Hashing allows for faster search and dynamic operations on data structures, arrays, and sorted arrays. This lecture discusses comparison models, decision trees, and hash functions. Instructor: Jason Ku
Problem Session 2
Four examples of worked problems are given. These focus on solving recurrences and the Master Theorem. Instructor: Justin Solomon
Lecture 5: Linear Sorting
This builds on the lecture on improving find times and discusses how to achieve a faster sort. Direct access array sorts, tuple sorts, counting sorts, and radix sorts are discussed. Instructor: Jason Ku
Problem Session 3
Five examples of worked problems are given. Topics include drawing pictures of hash tables and reductions from set (hashing bounds) to sequence. Instructor: Erik Demaine
Lecture 6: Binary Trees, Part 1
This is the first of two lectures on binary trees. This lecture discusses binary tree terminology, tree navigation, and dynamic operations. These are explored in two applications: sets and sequences. Instructor: Erik Demaine
Lecture 7: Binary Trees, Part 2: AVL
This is the second lecture on binary trees. This covers subtree augmentation and sequence binary trees with subtree sizes. Rotations, rebalancing, and height augmentation are used to achieve height balance (AVL). Instructor: Erik Demaine
Problem Session 4
Five example problems are worked. Topics include sequence rotations, drawing sequence trees, binary search, and programming in Python. Instructor: Jason Ku
Lecture 8: Binary Heaps
Prof. Demaine discusses priority queue interfaces and sorting algorithms. Algorithms include AVL sort for set AVL trees, selection sort for arrays, insertion sort for sorted arrays, and heap sort for binary heaps. Instructor: Erik Demaine
Lecture 9: Breadth-First Search
This class covers graph definitions, neighbor sets and adjacencies, graph representations in data structures, and paths. It also discusses shortest paths trees and breadth-first search. Instructor: Justin Solomon
Quiz 1 Review
This session focuses on preparing for the quiz. High-level concepts are discussed and example problems are worked. Topics include the Master Theorem, data structures, and sorting. Instructor: Jason Ku
Lecture 10: Depth-First Search
This class builds on the previous lecture of breadth-first search (BFS) by introducing depth-first search (DFS) and full-BFS and full-DFS. The lecture continues with topological sorts and cycle detection. Instructor: Justin Solomon
Lecture 11: Weighted Shortest Paths
This lecture discusses weighted graphs and weighted paths. This prepares for the next four lectures, which are on algorithms to find shortest-path weights in weighted graphs. Instructor: Jason Ku
Problem Session 5
Five example problems are worked. Topics include graph radius, graph schematics, full breadth-first search, and full depth-first search. Instructor: Justin Solomon
Lecture 12: Bellman-Ford
This lecture introduces a single source shortest path algorithm that works for general graphs. The process, correctness, and running time of the Bellman-Ford algorithm is discussed. Instructor: Jason Ku
Lecture 13: Dijkstra
This class discusses a fourth weighted single-source shortest path algorithm: Dijkstra’s algorithms. Non-negative edge weights are introduced. There is a worked example of applying Dijkstra’s algorithm. Instructor: Dr. Jason Ku
Problem Session 7
Five example programs are worked. Topics include Dijkstra algorithm, weighted graph radius, weighted ratios, and Johnson’s algorithm. Instructor: Justin Solomon
Lecture 14: APSP and Johnson
This lecture focuses on solving any all-pairs shortest paths (APSP) in weighted graphs. Johnson’s algorithm is introduced. Instructor: Jason Ku
Quiz 2 Review
This session focuses on preparing for the quiz. High-level concepts are discussed and example problems are worked. Topics include graph problems, topological sort, Bellman-Ford, and weighted graphs. Instructor: Jason Ku
Lecture 15: Dynamic Programming, Part 1: SRTBOT, Fib, DAGs, Bowling
This is the first of four lectures on dynamic programing. This begins with how to solve a problem recursively and continues with three examples: Fibonacci, DAG shortest paths, and bowling. Instructor: Erik Demaine
Lecture 16: Dynamic Programming, Part 2: LCS, LIS, Coins
This is the second of four lectures on dynamic programming. This introduces multiple sequence, substring subproblems, and parent pointers. Three examples of subproblem constraints and expansion are given. Instructor: Erik Demaine
Problem Session 8
Four example problems are worked. Topics include solving recursively, O(n)-time dynamic programming, topological order, and subproblems. Instructor: Justin Solomon
Lecture 17: Dynamic Programming, Part 3: APSP, Parens, Piano
This is the third of four lectures on dynamic programming. This focusses on applying subproblem constraints and expansions to example problems including, Bellman-Ford SSSP, Floyd-Warshall APSP, arithmetic parenthesization, and piano/guitar fingering. Instructo
Lecture 18: Dynamic Programming, Part 4: Rods, Subset Sum, Pseudopolynomial
This is the fourth and final lecture on dynamic programming. This class focusses on integer subproblems and pseudopolynomial time. Two worked examples are given: rod cutting and subset sum. Instructor: Erik Demaine
Lecture 19: Complexity
This lecture discusses computational complexity and introduces terminology: P, NP, EXP, R. These terms are applied to the concepts of hardness and completeness. The lecture ends with discussion on reductions. Instructor: Erik Demaine
Problem Session 9
Five example problems are worked. Topics include acyclic algorithms, hash tables, and topological ordering. Instructor: Justin Solomon
Quiz 3 Review
This session focuses on preparing for the quiz. High-level concepts are discussed and example problems are worked. Topics include the recursive framework, dynamic programming, and DAG. Instructor: Jason Ku
Lecture 20: Course Review
This lecture reviews the main concepts and learning goals for the course. Students should be able to solve hard computational problems, argue an algorithm is correct, argue an algorithm is “good,” and effectively communicate the above. Instructor: Jason Ku
Lecture 21: Algorithms—Next Steps
In this lecture, Erik Demaine, Jason Ku, and Justin Solomon talk about their own research in algorithms. This includes origami, folding designs, and applied geometry. Instructors: Erik Demaine, Jason Ku, and Justin Solomon