sit back and relax I recommend to set the sack's weight limit to at least 2x (the weight of the max weight of each item + the amount of items). 1 represents that the computer will select the item and 0 represents not choosing the item.
The Knapsack problem is you have a knapsack, and you have a set amount of items, every item has a value and weight. If you put too many items over the weight limit in the sack, the sack will break. The goal is to fit as many items as you can with the highest value without going over the weight limit. This A.I. uses a genetic algorithm to quickly find a solution to this problem.