You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For knapsack 0/1, could figure out which items are included from the resulting 2d array.
But, for the knapsack - unbounded, I have checked KnapsackUnbounded.java, and then searched on Google, but didn't found a solution, to figure out which items are included and how many times each item is included.
Could you clarify whether this can be done, and if yes, how? Many thanks.
(BTW: Maybe this worth another video:)
The text was updated successfully, but these errors were encountered:
kuchaguangjie
changed the title
About unbounded knapsack, how to figure out which items are included, and how many of each items are included?
About unbounded knapsack, how to figure out which items are included & how many times?
Feb 18, 2021
For
knapsack 0/1
, could figure out which items are included from the resulting 2d array.But, for the
knapsack - unbounded
, I have checkedKnapsackUnbounded.java
, and then searched on Google, but didn't found a solution, to figure out which items are included and how many times each item is included.Could you clarify whether this can be done, and if yes, how? Many thanks.
(BTW: Maybe this worth another video:)
The text was updated successfully, but these errors were encountered: