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 3
Question 1 of 1
Step 1 of 3
Step 2 of 3
Question 1 of 1
Question 1 of 1
Not this time.
You guessed: Item A weighs more than the room of 1, so it cannot go in.
What the run did:
With room 1, leaving A out keeps 0. Taking it is worth 5, plus 0 for the room it leaves: 5. Taking it is better, so write 5.
That is every question on this run: 0 of 1 right.
Question 1 of 1
Right.
You guessed: With room 1, taking item A is better, so take it.
What the run did:
With room 1, leaving A out keeps 0. Taking it is worth 5, plus 0 for the room it leaves: 5. Taking it is better, so write 5.
That is every question on this run: 1 of 1 right.
Question 1 of 1
Not this time.
You guessed: With room 1, taking item A is no better, so leave it.
What the run did:
With room 1, leaving A out keeps 0. Taking it is worth 5, plus 0 for the room it leaves: 5. Taking it is better, so write 5.
That is every question on this run: 0 of 1 right.