Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Java program for 0-1 knapsack #200

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

Merged
prateekiiest merged 2 commits into codeIIEST:master from ManognaMutyala:master
Dec 30, 2017
Merged

Conversation

Copy link
Contributor

@ManognaMutyala ManognaMutyala commented Dec 13, 2017

Thank you for your contribution. Please provide the details requested below.

ISSUE NUMBER

#191

SHORT DESCRIPTION

Java program for knapsack algorithm

Copy link
Member

@prateekiiest prateekiiest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how can i differentiate from the already existing code.

please show me the difference between the two by some output or time complexities if any

Copy link
Contributor Author

ManognaMutyala commented Dec 14, 2017
edited
Loading

Sir, I went through the other program after you asked me for the difference.The other program they have written is not a greedy approach.They have written the dynamic approach but they have placed it under greedy approach.Greedy approach is different from what they have mentioned.I would also like to write greedy approach program too.Kindly let me the solution for the above @prateekiiest

Copy link
Member

it will be good if you can compare between the two codes in times of time complexity

Copy link
Contributor Author

Complexity in greedy programming would be O(nlogn) whereas in dynamic programming it would be
O(nW).So Sir do you want me to specify it over there in the description?

Copy link
Member

can you add a plot in the readme showing the time complexity differences

Created readme.md for 0-1 explaining Knapsack time complexity using dynamic programming.
@prateekiiest prateekiiest merged commit cc26632 into codeIIEST:master Dec 30, 2017
Copy link
Member

Looks good 🎆

Thanks for the contribution 🥇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@prateekiiest prateekiiest prateekiiest approved these changes

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /