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 23 of 27
Question 7 of 9
Step 23 of 27
Step 24 of 27
Step 25 of 27
Step 26 of 27
Question 7 of 9
Question 7 of 9
Right.
You guessed: Item B weighs more than the room of 2, so it cannot go in.
What the run did:
Item B weighs 3, more than the room of 2, so it cannot go in. Write 0, the best without it.
Question 7 of 9
Not this time.
You guessed: With room 2, taking item B is better, so take it.
What the run did:
Item B weighs 3, more than the room of 2, so it cannot go in. Write 0, the best without it.
Question 7 of 9
Not this time.
You guessed: With room 2, taking item B is no better, so leave it.
What the run did:
Item B weighs 3, more than the room of 2, so it cannot go in. Write 0, the best without it.
Question 8 of 9
Question 8 of 9
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 0 for the room it leaves: 40. That is no better, so leave it and write 50.
Question 8 of 9
Not this time.
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 0 for the room it leaves: 40. That is no better, so leave it and write 50.
Question 8 of 9
Right.
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 0 for the room it leaves: 40. That is no better, so leave it and write 50.
Question 9 of 9
Question 9 of 9
Not this time.
You guessed: Item D weighs more than the room of 8, so it cannot go in.
What the run did:
With room 8, leaving D out keeps 90. Taking it is worth 30, plus 50 for the room it leaves: 80. That is no better, so leave it and write 90.
That is every question on this run: 0 of 9 right.
Question 9 of 9
Not this time.
You guessed: With room 8, taking item D is better, so take it.
What the run did:
With room 8, leaving D out keeps 90. Taking it is worth 30, plus 50 for the room it leaves: 80. That is no better, so leave it and write 90.
That is every question on this run: 0 of 9 right.
Question 9 of 9
Right.
You guessed: With room 8, taking item D is no better, so leave it.
What the run did:
With room 8, leaving D out keeps 90. Taking it is worth 30, plus 50 for the room it leaves: 80. That is no better, so leave it and write 90.
That is every question on this run: 1 of 9 right.