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 5 of 18
Question 1 of 6
Step 5 of 18
Step 6 of 18
Step 8 of 18
Step 9 of 18
Step 10 of 18
Step 13 of 18
Step 14 of 18
Step 15 of 18
Step 16 of 18
Step 17 of 18
Question 1 of 6
Question 1 of 6
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 50, plus 0 for the room it leaves: 50. Taking it is better, so write 50.
Question 1 of 6
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 50, plus 0 for the room it leaves: 50. Taking it is better, so write 50.
Question 1 of 6
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 50, plus 0 for the room it leaves: 50. Taking it is better, so write 50.
Question 2 of 6
Question 2 of 6
Right.
You guessed: Item A weighs more than the room of 3, so it cannot go in.
What the run did:
Item A weighs 4, more than the room of 3, so it cannot go in. Write 0, the best without it.
Question 2 of 6
Not this time.
You guessed: With room 3, taking item A is better, so take it.
What the run did:
Item A weighs 4, more than the room of 3, so it cannot go in. Write 0, the best without it.
Question 2 of 6
Not this time.
You guessed: With room 3, taking item A is no better, so leave it.
What the run did:
Item A weighs 4, more than the room of 3, so it cannot go in. Write 0, the best without it.
Question 3 of 6
Question 3 of 6
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 50. Taking it is worth 30, plus 0 for the room it leaves: 30. That is no better, so leave it and write 50.
Question 3 of 6
Not this time.
You guessed: With room 5, taking item B is better, so take it.
What the run did:
With room 5, leaving B out keeps 50. Taking it is worth 30, plus 0 for the room it leaves: 30. That is no better, so leave it and write 50.
Question 3 of 6
Right.
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 50. Taking it is worth 30, plus 0 for the room it leaves: 30. That is no better, so leave it and write 50.
Question 4 of 6
Question 4 of 6
Right.
You guessed: Item A weighs more than the room of 2, so it cannot go in.
What the run did:
Item A weighs 4, more than the room of 2, so it cannot go in. Write 0, the best without it.
Question 4 of 6
Not this time.
You guessed: With room 2, taking item A is better, so take it.
What the run did:
Item A weighs 4, more than the room of 2, so it cannot go in. Write 0, the best without it.
Question 4 of 6
Not this time.
You guessed: With room 2, taking item A is no better, so leave it.
What the run did:
Item A weighs 4, more than the room of 2, so it cannot go in. Write 0, the best without it.
Question 5 of 6
Question 5 of 6
Not this time.
You guessed: Item B weighs more than the room of 2, so it cannot go in.
What the run did:
With room 2, leaving B out keeps 0. Taking it is worth 30, plus 0 for the room it leaves: 30. Taking it is better, so write 30.
Question 5 of 6
Right.
You guessed: With room 2, taking item B is better, so take it.
What the run did:
With room 2, leaving B out keeps 0. Taking it is worth 30, plus 0 for the room it leaves: 30. Taking it is better, so write 30.
Question 5 of 6
Not this time.
You guessed: With room 2, taking item B is no better, so leave it.
What the run did:
With room 2, leaving B out keeps 0. Taking it is worth 30, plus 0 for the room it leaves: 30. Taking it is better, so write 30.
Question 6 of 6
Question 6 of 6
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 6 right.
Question 6 of 6
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 6 right.
Question 6 of 6
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 6 right.