Question DSA-DP-0054
MediumThe 0/1 knapsack DP runs in O(nW). Why is it called pseudo-polynomial?
- A.
W is a number, and its size in bits is log W, so the time is exponential in the input length
- B.
It uses floating point
- C.
Sign up free to see the answer and a step-by-step explanation.