Knapsack in FPTAS #
The optimization problem chooses a subsequence of the items within the capacity and maximizes its total value. The existing knapsack approximation algorithm and its unary-accuracy time bound provide the solver for the generic FPTAS predicate Williamson and Shmoys, Theorem 3.5, §3.1, printed p. 68 of the authors' electronic web edition. We also allow zero weights, values and capacity. The solver filters out items exceeding capacity. Selecting a subsequence preserves distinct positions for items with identical weights and values.
The 0–1 knapsack maximization problem, with a list of selected items as a solution.
The certified knapsack solver is an FPTAS for the optimization problem.