Question: Does there exist a poly - time algorithm for the knapsack problem? A . Yes, because the DP algorithm takes Theta ( n W
Does there exist a polytime algorithm for the knapsack problem?
A Yes, because the DP algorithm takes Theta n W time.
pseudopolynomial
B No because Theta n W is not a polynomial function of the input size.
C No because the problem is NPhard.
D Unknown.
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
