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
694
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
694
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.
3
3
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,764
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.8k
views
algorithms
knapsack-problem
dynamic-programming
1
vote
1
vote
1
answer
2
LavTheRawkstar
asked
in
Algorithms
Mar 25, 2017
2,573
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 25, 2017
by
LavTheRawkstar
2.6k
views
knapsack-problem
algorithms
7
votes
7
votes
2
answers
3
vaishali jhalani
asked
in
Algorithms
Nov 6, 2016
4,602
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
4.6k
views
algorithms
knapsack-problem
0
votes
0
votes
0
answers
4
VIKAS TIWARI
asked
in
Algorithms
Dec 13, 2017
1,035
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
1.0k
views
algorithms
dynamic-programming
knapsack-problem
general-topic-doubt
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
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
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(25)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(684)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
244k
comments
80.0k
users
Recent Blog Comments
category ?
Hi @Arjun sir, I have obtained a score of 591 in ...
download here
Can you please tell about IIT-H mtech CSE self...
Please add your admission queries here:...
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy