Comment Comment by tedunangst Perhaps you aren't? Unlike struct packing, the knapsack problem has a fixed upper limit. There's no limit on number of struct fields, and indeed, every solution consists of all of them. parent tedunangst 11 years ago