Bin Packing

Input

Finite set UU of items, a size s(u)Z+s(u) \in \mathbb{Z}^{+} for each uUu \in U, a positive integer bin capacity BB, and a positive integer KK.

Question

Is there a partition of UU into disjoint sets U1,U2,,UKU_1, U_2, \dots, U_K such that the sum of the sizes of the items in each UiU_i is BB or less?

Classes

Comments

NP-complete in the strong sense. NP-complete and solvable in pseudo-polynomial for each fixed K2K \geq 2. Solvable in polynomial time for any fixed BB by exhaustive search.

Proofs

NP-complete

Transformation from Partition, [problem:3-partition].

Reducible from