Course or collection
Introduction to Algorithms
MIT OpenCourseWare · 47 catalogue entries
MIT OpenCourseWare · Fall 2011
Original course and syllabus ↗MIT 6.006 Introduction to Algorithms, Fall 2011
Lecture 1: Algorithmic Thinking, Peak Finding
Description: Overview of course content, including an motivating problem for each of the modules. The lecture then covers 1-D and 2-D peak finding, using this problem to point out some issues involved in designing efficient algorithms. Instructor: Srini Devada
Lecture 2: Models of Computation, Document Distance
Description: This lecture describes an algorithm as a computational procedure to solve a problem, covers the random access machine and pointer models of computation, and introduces the document distance problem. Instructor: Erik Demaine
Lecture 3: Insertion Sort, Merge Sort
Description: Sorting is introduced, and motivated by problems that become easier once the inputs are sorted. The lecture covers insertion sort, then discusses merge sort and analyzes its running time using a recursion tree. Instructor: Srini Devadas
Lecture 4: Heaps and Heap Sort
Description: Priority queues are introduced as a motivation for heaps. The lecture then covers heap operations and concludes with a discussion of heapsort. Instructor: Srini Devadas
Lecture 5: Binary Search Trees, BST Sort
Description: In this lecture, binary search trees are introduced, and several operations are covered: insertion, finding a value, finding the minimum element. Instructor: Srini Devadas
Lecture 6: AVL Trees, AVL Sort
Description: This lecture covers AVL trees, including how to insert elements and rebalance the tree, and then discusses the difference between abstract data types and data structures. Instructor: Erik Demaine
Lecture 7: Counting Sort, Radix Sort, Lower Bounds for Sorting
Description: This lecture starts by using the comparison model to prove lower bounds for searching and sorting, and then discusses counting sort and radix sort, which run in linear time. Instructor: Erik Demaine
Lecture 8: Hashing with Chaining
Description: This lecture starts with dictionaries in Python, considers the problems with using a direct-access table, and introduces hashing. The lecture discusses hashing with chaining, which is one way of dealing with collisions. Instructor: Erik Demaine
Lecture 9: Table Doubling, Karp-Rabin
Description: This lecture covers table resizing, amortized analysis, string matching with the Karp-Rabin algorithm, and rolling hashes. Instructor: Erik Demaine
Lecture 10: Open Addressing, Cryptographic Hashing
Description: This lecture covers open addressing, which is another approach to dealing with collisions (hashing with chaining was covered in Lecture 8). Cryptographic hashing is also introduced. Instructor: Srini Devadas
Lecture 11: Integer Arithmetic, Karatsuba Multiplication
Description: This is the first of two lectures on numerics, covering irrational numbers, high-precision computation, and Karatsuba multiplication. Instructor: Srini Devadas
Lecture 12: Square Roots, Newton's Method
Description: This lecture begins with error analysis of Newton’s method and a comparison of multiplication algorithms. It then covers high-precision division, which is required for Newton’s method, and discusses the complexity of division and computing square
Lecture 13: Breadth-First Search (BFS)
Description: This lecture begins with a review of graphs and applications of graph search, discusses graph representations such as adjacency lists, and covers breadth-first search. Instructor: Erik Demaine
Lecture 14: Depth-First Search (DFS), Topological Sort
Description: This lecture covers depth-first search, including edge classification, and how DFS is used for cycle detection and topological sort. Instructor: Erik Demaine
Lecture 15: Single-Source Shortest Paths Problem
Description: This lecture introduces weighted graphs and considers general approaches to the shortest paths problem. The lecture discusses single source shortest paths, negative-weight edges, and optimal substructure. Instructor: Srini Devadas
Lecture 16: Dijkstra
Description: This lecture shows how to find shortest paths in directed acyclic graphs (DAGs) using topological sort, and in graphs without negative edges using Dijkstra’s algorithm. Instructor: Srini Devadas
Lecture 17: Bellman-Ford
Description: This lecture reviews shortest path notation, considers a generic shortest path algorithm, and then describes and proves the Bellman-Ford algorithm, which can handle graphs with negative cycles. Instructor: Srini Devadas
Lecture 18: Speeding up Dijkstra
Description: This lecture covers optimizations that can improve real-life, average case performance of shortest path algorithms. These include using Dijkstra for a single source and single target, bi-directional search, and goal-directed or A* search. Instruct
Lecture 19: Dynamic Programming I: Fibonacci, Shortest Paths
Description: This lecture introduces dynamic programming, in which careful exhaustive search can be used to design polynomial-time algorithms. The Fibonacci and shortest paths problems are used to introduce guessing, memoization, and reusing solutions to subpr
Lecture 20: Dynamic Programming II: Text Justification, Blackjack
Description: This lecture starts with a five-step process for dynamic programming, and then covers text justification and perfect-information blackjack. The lecture also describes how parent pointers are used to recover the solution. Instructor: Erik Demaine
Lecture 21: Dynamic Programming III: Parenthesization, Edit Distance, Knapsack
Description: This lecture starts with how to define useful subproblems for strings or sequences, and then looks at parenthesization, edit distance, and the knapsack problem. The lecture ends with a brief discussion of pseudopolynomial time. Instructor: Erik De
Lecture 22: Dynamic Programming IV: Guitar Fingering, Tetris, Super Mario Bros.
Description: This lecture introduces a second type of guessing, in which more subproblems are created so that more features of the solution can be found. This type of guessing is illustrated with piano/guitar fingering and the Tetris and Super Mario Brothers g
Lecture 23: Computational Complexity
Description: This lecture introduces computational complexity, including how most decision problems are uncomputable, hardness and completeness, and reductions. Instructor: Erik Demaine
Lecture 24: Topics in Algorithms Research
Description: In this lecture, both professors present areas of current research, including parallel processor architecture and algorithms, geometric folding algorithms, data structures, and graph algorithms. Instructor: Srini Devadas, Erik Demaine
Recitation 1: Asymptotic Complexity, Peak Finding
Description: This recitation covers asymptotic complexity, recurrences, and peak finding. Instructor: Victor Costan
Recitation 2: Python Cost Model, Document Distance
Description: This recitation covers the Python cost model and looks at the code for document distance, including main and most functions except count_frequency. Instructor: Victor Costan
Recitation 3: Document Distance, Insertion and Merge Sort
Description: This recitation continues to look at versions of the document distance code, and briefly discusses insertion and merge sort. Instructor: Victor Costan
Recitation 5: Recursion Trees, Binary Search Trees
Description: This recitation starts with a review of recursion trees and recurrences, and then discusses binary search trees. Instructor: Victor Costan
Recitation 6: AVL Trees
Description: This recitation covers insertion, deletion, and rebalancing of AVL trees. Instructor: Victor Costan
Recitation 7: Comparison Sort, Counting and Radix Sort
Description: This recitation starts with a review of comparison sorting methods, and then discusses counting sort and radix sort. Instructor: Victor Costan
Recitation 8: Simulation Algorithms
Description: This recitation discusses the first problem from Problem Set 3, covering sweep-line algorithms and range queries. Instructor: Victor Costan
Recitation 9: Rolling Hashes, Amortized Analysis
Description: This recitation mostly covers rolling hashes, with a short discussion of amortized analysis at the end. Instructor: Victor Costan
Recitation 9b: DNA Sequence Matching
Description: This recitation starts with a short discussion of hashing, and then discusses problem set code for most of the hour. Amortized analysis is also discussed briefly. Instructor: Victor Costan
Recitation 10: Quiz 1 Review
Description: This recitation covers several practice problems for Quiz 1, taken from previous semesters of 6.006. Instructor: Victor Costan
Recitation 11: Principles of Algorithm Design
Description: This recitation discusses principles of algorithm design, using example problems from previous final exams. Instructor: Victor Costan
Recitation 12: Karatsuba Multiplication, Newton's Method
Description: This recitation briefly discusses Karatsuba multiplication, then covers Newton’s method. Instructor: Victor Costan
Recitation 13: Breadth-First Search (BFS)
Description: This recitation starts with a discussion of Problem Set 5, and then covers graph representations and breadth-first search. Instructor: Victor Costan
Recitation 14: Depth-First Search (DFS)
Description: This recitation covers depth-first search and DFS edge classification. Instructor: Victor Costan
Recitation 15: Shortest Paths
Description: This recitation covers breadth-first search for shortest paths. Instructor: Victor Costan
Recitation 16: Rubik's Cube, StarCraft Zero
Description: This recitation discusses the Rubik’s cube problem from Problem Set 6, and then uses a graph model to find an optimal build order for a simplified version of the StarCraft game. Instructor: Victor Costan
Recitation 18: Quiz 2 Review
Description: This recitation reviews numerics and graphs in preparation for Quiz 2. Instructor: Victor Costan
Recitation 19: Dynamic Programming: Crazy Eights, Shortest Path
Description: This recitation uses dynamic programming to find subsequences in the card game Crazy Eights, and to find the shortest path in a graph. Instructor: Victor Costan
Recitation 20: Dynamic Programming: Blackjack
Description: This recitation revisits the perfect-information blackjack problem that was covered in lecture. Instructor: Victor Costan
Recitation 22: Dynamic Programming: Dance Dance Revolution
Description: This recitation looks at player positions in the Dance Dance Revolution game, along the lines of the guitar fingering example shown in lecture. Instructor: Victor Costan
Recitation 21: Dynamic Programming: Knapsack Problem
Description: This recitation discusses the knapsack problem and polynomial time vs. pseudo-polynomial time. Instructor: Victor Costan
Recitation 23: Computational Complexity
Description: This recitation reviews the computational complexity concepts presented in lecture. Instructor: Victor Costan
Recitation 24: Final Exam Review
Description: This recitation covers the wood-cutting problem (dynamic programming) and Bloom filters (hashing, probability). Instructor: Victor Costan