Vidyalelo
Data Structure · Q24

Dynamic Programming in Data Structures

Programming · Data Structure · question 24

Q24

What is the time complexity of the Dynamic Programming solution for the "0/1 Knapsack Problem" using a table?

A.
O(n log W)
B.
O(W log W)
C.
O(nW)
Answer
D.
O(n2)

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board