Study
CSC-401 route
Unit 9 · Lesson 3 of 4 19 min

The Knapsack Problem

One table, two capacities, and a decision that a greedy rule cannot make.

What this unit covers

Unit 9: Dynamic Programming

  1. 1 Overlapping Subproblems and Dynamic ProgrammingRemember the answer once, and never compute it twice. · 18 min
  2. 2 The Coin-Row and Coin-Collecting ProblemsTwo two-dimensional intuitions, and the index that makes them recurrences. · 19 min
  3. 3 The Knapsack ProblemOne table, two capacities, and a decision that a greedy rule cannot make. · 19 min
  4. 4 Warshall's and Floyd's AlgorithmsAll pairs at once, by allowing one intermediate vertex at a time. · 19 min