Pseudo-polynomial time algorithm for 1D knapsack

Dependencies:

  1. Bin packing and Knapsack

There is a dynamic-programming algorithm for the knapsack problem. See Algorithm 3.1 in the book 'The Design of Approximation Algorithms' by Williamson and Shmoys.

When the item sizes and item profits are integers, the running time is $O(\min(nB, nV, 2^n))$, where $B$ is the knapsack capacity and $V$ is the sum of profits of all items.

Dependency for:

  1. FPTAS for 1D knapsack

Info:

Transitive dependencies:

  1. Bin packing and Knapsack