Skip to content

guess the next step: 0/1 knapsack

Before each step plays, guess what it does. The page then shows the step as the run takes it and says why, the same sentence the watch page says there.

Step 1 of 34

012345678ABCD0000000000000
Pack a bag that holds 8 with the most value from 4 items. With no items or no room it holds nothing, so the first row and column are 0.

Question 1 of 32

What happens next?

Your guess