Name: ____________________________________________________ Alpha: _____________________

Describe help received: _________________________________________________________________
Per-problem assessment: • 5 (Perfect): Correct solution • 4 (Good effort): Good effort, solution may or may not be correct. • 2 (Poor effort): Some basic misunderstandings demonstrated that could have been cleared up by reading the notes or giving a serious try. • 0 (No effort): No progress towards a solution.

Problem 0 (assessment: self_______ final_______)

Look at the description of the memoized 0/1 Knapsack solution from the class notes. Below is shown and input problem and the table created by the memoized algorithm in finding an optimal solution for that problem. Use the table to work backwards and figure out an optimum solution to this problem - i.e. which items actually go in the knapsack. Be sure to show how the table is used!
10 :   2:3  3:7  4:8  4:9  3:2  ← Note: these are weight:value pairs
ncap
012345678910
0000000000-10
10-1333-133-1-13
2-1-137-1-11010-1-110
3-1-1-17-1-11115-1-118
4-1-1-1-1-1-1-116-1-120
5-1-1-1-1-1-1-1-1-1-120