computation Definition Max-Value Knapsack Given items a1,a2,…,an, where each ai has a positive integer value val(ai)∈Z+ and size s(ai)∈Z+, and a knapsack size S, find a subset of items whose size is bounded by S and total value maximised.