guess the next step: Knapsack from the top down
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 6 of 27
Question 1 of 9
Step 6 of 27
Step 7 of 27
Step 10 of 27
Step 11 of 27
Step 12 of 27
Step 16 of 27
Step 17 of 27
Step 18 of 27
Step 19 of 27
Question 1 of 9
Question 1 of 9
Not this time.
You guessed: Item A weighs more than the room of 8, so it cannot go in.
What the run did:
With room 8, leaving A out keeps 0. Taking it is worth 20, plus 0 for the room it leaves: 20. Taking it is better, so write 20.
Question 1 of 9
Right.
You guessed: With room 8, taking item A is better, so take it.
What the run did:
With room 8, leaving A out keeps 0. Taking it is worth 20, plus 0 for the room it leaves: 20. Taking it is better, so write 20.
Question 1 of 9
Not this time.
You guessed: With room 8, taking item A is no better, so leave it.
What the run did:
With room 8, leaving A out keeps 0. Taking it is worth 20, plus 0 for the room it leaves: 20. Taking it is better, so write 20.
Question 2 of 9
Question 2 of 9
Not this time.
You guessed: Item A weighs more than the room of 5, so it cannot go in.
What the run did:
With room 5, leaving A out keeps 0. Taking it is worth 20, plus 0 for the room it leaves: 20. Taking it is better, so write 20.
Question 2 of 9
Right.
You guessed: With room 5, taking item A is better, so take it.
What the run did:
With room 5, leaving A out keeps 0. Taking it is worth 20, plus 0 for the room it leaves: 20. Taking it is better, so write 20.
Question 2 of 9
Not this time.
You guessed: With room 5, taking item A is no better, so leave it.
What the run did:
With room 5, leaving A out keeps 0. Taking it is worth 20, plus 0 for the room it leaves: 20. Taking it is better, so write 20.
Question 3 of 9
Question 3 of 9
Not this time.
You guessed: Item B weighs more than the room of 8, so it cannot go in.
What the run did:
With room 8, leaving B out keeps 20. Taking it is worth 50, plus 20 for the room it leaves: 70. Taking it is better, so write 70.
Question 3 of 9
Right.
You guessed: With room 8, taking item B is better, so take it.
What the run did:
With room 8, leaving B out keeps 20. Taking it is worth 50, plus 20 for the room it leaves: 70. Taking it is better, so write 70.
Question 3 of 9
Not this time.
You guessed: With room 8, taking item B is no better, so leave it.
What the run did:
With room 8, leaving B out keeps 20. Taking it is worth 50, plus 20 for the room it leaves: 70. Taking it is better, so write 70.
Question 4 of 9
Question 4 of 9
Right.
You guessed: Item A weighs more than the room of 2, so it cannot go in.
What the run did:
Item A weighs 3, more than the room of 2, so it cannot go in. Write 0, the best without it.
Question 4 of 9
Not this time.
You guessed: With room 2, taking item A is better, so take it.
What the run did:
Item A weighs 3, more than the room of 2, so it cannot go in. Write 0, the best without it.
Question 4 of 9
Not this time.
You guessed: With room 2, taking item A is no better, so leave it.
What the run did:
Item A weighs 3, more than the room of 2, so it cannot go in. Write 0, the best without it.
Question 5 of 9
Question 5 of 9
Not this time.
You guessed: Item B weighs more than the room of 5, so it cannot go in.
What the run did:
With room 5, leaving B out keeps 20. Taking it is worth 50, plus 0 for the room it leaves: 50. Taking it is better, so write 50.
Question 5 of 9
Right.
You guessed: With room 5, taking item B is better, so take it.
What the run did:
With room 5, leaving B out keeps 20. Taking it is worth 50, plus 0 for the room it leaves: 50. Taking it is better, so write 50.
Question 5 of 9
Not this time.
You guessed: With room 5, taking item B is no better, so leave it.
What the run did:
With room 5, leaving B out keeps 20. Taking it is worth 50, plus 0 for the room it leaves: 50. Taking it is better, so write 50.
Question 6 of 9
Question 6 of 9
Not this time.
You guessed: Item C weighs more than the room of 8, so it cannot go in.
What the run did:
With room 8, leaving C out keeps 70. Taking it is worth 40, plus 50 for the room it leaves: 90. Taking it is better, so write 90.
Question 6 of 9
Right.
You guessed: With room 8, taking item C is better, so take it.
What the run did:
With room 8, leaving C out keeps 70. Taking it is worth 40, plus 50 for the room it leaves: 90. Taking it is better, so write 90.
Question 6 of 9
Not this time.
You guessed: With room 8, taking item C is no better, so leave it.
What the run did:
With room 8, leaving C out keeps 70. Taking it is worth 40, plus 50 for the room it leaves: 90. Taking it is better, so write 90.