def. Knapsack Problem. You have items with costs and utility with a budget . What is the maximum utility you can achieve? Course Description
Idea: Simple iteration DP
thm. Knapsack is NP-complete
- Idea: Reduce from Partition Problem.
Search
def. Knapsack Problem. You have items 0…n−1 with costs c[0…n−1] and utility v[0…n−1] with a budget B. What is the maximum utility you can achieve? Course Description
Idea: Simple iteration DP
thm. Knapsack is NP-complete