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