Skip to content

Why one dimension is not enough

Items have weights and values and a bag holds a fixed total weight. You want the most valuable legal selection.

Why can the state not be the item index alone?