Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
self doubt *0/1 knapsack problem*
karan25gupta
asked
in
Algorithms
Apr 17, 2019
563
views
0
votes
0
votes
In 0/1 knapsack problem ,suppose if maximum weight is given as W and we are asked to find out max profit then * IS IT NECESSARY THAT THE TOTAL WEIGHT SHOULD BE EXACTLY EQUAL TO W OR IT CAN BE LESS THAN W AS WELL????
algorithms
dynamic-programming
knapsack-problem
karan25gupta
asked
in
Algorithms
Apr 17, 2019
by
karan25gupta
563
views
answer
comment
Follow
share this
share
2 Comments
by
Satbir
commented
Apr 18, 2019
reply
Follow
share this
can be less than W because our priority is to gain max profit not maximum weight. And it is 0/1 knapsack and not fractional knapsack so everytime we cannot completely fill the knapsack.
2
2
by
karan25gupta
commented
Apr 19, 2019
reply
Follow
share this
got it
0
0
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
0
Answers
← Previous
Next →
← Previous in category
Next in category →
Related questions
0
votes
0
votes
1
answer
1
Syedabbas110
asked
in
Algorithms
Oct 30, 2017
2,235
views
Knapsack problem
5.Consider the Knapsack instance with 5 objects and a capacity M=11, profit P=(5,4,7,2,3) and weight W=(4,3,6,2,2.). Solve it using dynamic programming approach.
Syedabbas110
asked
in
Algorithms
Oct 30, 2017
by
Syedabbas110
2.2k
views
algorithms
knapsack-problem
dynamic-programming
1
vote
1
vote
1
answer
2
LavTheRawkstar
asked
in
Algorithms
Mar 26, 2017
2,100
views
#Confusion Is it necessary to arrange the weights in Ascending order while solving 0/1 Knapsack problem using Dynamic
LavTheRawkstar
asked
in
Algorithms
Mar 26, 2017
by
LavTheRawkstar
2.1k
views
knapsack-problem
algorithms
7
votes
7
votes
2
answers
3
vaishali jhalani
asked
in
Algorithms
Nov 6, 2016
3,491
views
0/1 knapsack
The difference between maximum possible profit for $0/1$ Knapsack and fractional Knapsack problem with capacity $(W)=20$ ... For 0/1 knapsack, we have to make the whole table or there is any direct method to this?
vaishali jhalani
asked
in
Algorithms
Nov 6, 2016
by
vaishali jhalani
3.5k
views
algorithms
knapsack-problem
0
votes
0
votes
0
answers
4
VIKAS TIWARI
asked
in
Algorithms
Dec 13, 2017
740
views
General Topic Doubt: Algorithms - Dynamic Programming
Read the following statements about 0/1 Knapsack problem. (i) Time complexity of Knapsack is O(n* W) where W is the weight of the Knapsack and there are n items. (ii) Time complexity of Knapsack is min( O(n*W) , O(2^n) ) where W is the weight of the ... ) and (iii) is true (ii) and (iii) is true (i) ( iii) (iv) is true (ii) (iii) (iv) is true.
VIKAS TIWARI
asked
in
Algorithms
Dec 13, 2017
by
VIKAS TIWARI
740
views
algorithms
dynamic-programming
knapsack-problem
general-topic-doubt
Subscribe to GATE CSE 2023 Test Series
Subscribe to GO Classes for GATE CSE 2023
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
-tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
From GATE to Australia
DRDO Previous Year Papers
From Rank 4200 to 64: My Journey to Success in GATE CSE Exam
What are the key things to focus on during the final 10-15 days before the GATE exam to improve performance?
All India GO Classes Mock test
Subjects
All categories
General Aptitude
(2.5k)
Engineering Mathematics
(9.3k)
Digital Logic
(3.3k)
Programming and DS
(5.9k)
Algorithms
(4.6k)
Theory of Computation
(6.7k)
Compiler Design
(2.3k)
Operating System
(5.0k)
Databases
(4.6k)
CO and Architecture
(3.8k)
Computer Networks
(4.6k)
Non GATE
(1.3k)
Others
(2.4k)
Admissions
(649)
Exam Queries
(842)
Tier 1 Placement Questions
(17)
Job Queries
(74)
Projects
(9)
Unknown Category
(853)
Recent Blog Comments
This guy was just exceptional. I remember hearing...
Inspirational! Found the right Blog at the right...
That was my second attempt. I already had notes,...
Sorry to break the news, but: I see a few flaws...
bhai mujhe bhi bula lo australia......mai bhi...
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy