Question: Given two problems as follows: Problem A: Given n non - negative numbers a 1 , a 2 , . . . , an and
Given two problems as follows:
Problem A: Given n nonnegative numbers a a an and another number W Is there a
subset S n such that
i in S ai W
Problem B: Given n items w vw vwn vn where for any item i in n
wi is the nonnegative weight and vi is the nonnegative value. Given the capacity P and the
value Q Is there a subset S n such that
i in S wi P and
i in S vi Q
Now, suppose we already know Problem A is NPhard. Please provide the proof to show
Problem B is also NPhard.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
