For a 0-1 knapsack problem with given weights and values of n items, and a maximum weight capacity W, I know it can be solved with a double nested loop using dynamic approach.
My question is if we say that each of the n items have an additional "volume" value and a maximum volume capacity V, then how do I change the algorithm? Will the algorithm becomes a triple nested loop with time complexity O(n*W*V)?