Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unbounded Knapsack (Dynamic Programming) #1728

Open
shahzaibahmad3 opened this issue Oct 10, 2020 · 2 comments
Open

Unbounded Knapsack (Dynamic Programming) #1728

shahzaibahmad3 opened this issue Oct 10, 2020 · 2 comments

Comments

@shahzaibahmad3
Copy link

@shahzaibahmad3 shahzaibahmad3 commented Oct 10, 2020

Given Input : an array of weights wt[], an array of values val[] containing weights and values for each item and a Weight W of Knapsack.
Output : Maximise the profit.
here we are allowed to use unlimited number of instances of an item unlike 0-1 Knapsack problem.

Test Case:
input- wt={1,2,3,4}
val={25,35,10,25}, W=8
Output- 200

@rangira
Copy link

@rangira rangira commented Oct 11, 2020

Can I take this

@sanguvk123
Copy link

@sanguvk123 sanguvk123 commented Oct 11, 2020

can i do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.