Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
courses:cs211:winter2012:journals:garrett:entries:week_9 [2012/03/28 03:45] – 6.3 garrettheath4 | courses:cs211:winter2012:journals:garrett:entries:week_9 [2012/03/28 04:04] (current) – made ratings a table garrettheath4 | ||
---|---|---|---|
Line 2: | Line 2: | ||
===== Chapter Scores ===== | ===== Chapter Scores ===== | ||
- | * **Readability Score**: FIXME / 10 {{: | + | | **Readability Score** |
- | | + | | |
===== Readings ===== | ===== Readings ===== | ||
Line 23: | Line 23: | ||
=== 6.4: Subset Sums and Knapsacks === | === 6.4: Subset Sums and Knapsacks === | ||
+ | The **knapsack problem** is a problem in which we have '' | ||
+ | We go about solving this problem much like we did with the weighted interval scheduling problem in that we have to make a **binary** decision to include an item in the solution or not. Unlike weighted interval scheduling, however, items with equal or less weight do not conflict with each other, so we can't stop our algorithm just because we choose an item, we have to keep going to make sure we consider all reasonable combinations. | ||