Recent questions tagged knapsack-problem

0 votes
1 answer
2
0 votes
1 answer
4
The following table givens the frequency of 4 letters in a database of textIf Huffman encoding is used to encode the word “aaabca” the number of bits required for it ...
0 votes
0 answers
9
0 votes
1 answer
10
Can we solve fractional knapsack using dynamic programming?
0 votes
0 answers
11
Is there any better approach to solve 0/1 knapsack problem other than tabular method ? as it consumes a lot of time when greater number of objects are given.
0 votes
1 answer
12
0 votes
1 answer
13
What is the best way to solve a 0/1 knapsack problem? Any trick to solve it without wasting much time?Not How to
0 votes
0 answers
15
How to solve fractional knapsack problem using heap ?
0 votes
1 answer
16
What will be the time complexity if fractional knapsack is implemented using min heap instead of sorted arraya) O(nlogn)b)O(n^2)c)O(n)d) none of these
0 votes
1 answer
17
Is fractional Kanpsack or knapsack problem in our GATE 2019 Syllabus
0 votes
1 answer
19
The following Knapsack bag. The Knapsack bag maximum Capacity is 50. Find out the maximum profit for Fractional Knapsack. PQRSTUVWWeight1812161416201015Profit341522161722...
0 votes
1 answer
22
5.Consider the Knapsack instance with 5 objects and a capacity M=11, profit P=(5,4,7,2,3) andweight W=(4,3,6,2,2.). Solve it using dynamic programming approach.
1 votes
1 answer
23
how is 0/1 knapsack time complexity O(2^n/2) ?
0 votes
1 answer
24
Consider the following instance of the knapsack problem: n=3 , W=50 , (v1,v2,v3) = (60,100,120) and weight (w1,w2,w3) = (10,20,30) .solve the given knapsack problem apply...
1 votes
1 answer
25
Number of Cateogires are 5, Thier total weights are w1,w2,w3,w4,w5={7,2,4,8,6}b1,b2,b3,b4,b5={5,6,4,3,2}M=6=Maximum Capacity= WI am having confusion How to solve using dy...
1 votes
1 answer
27
Consider the Knapsack incidence with n=3(items) with weights {w1,w2,w3}={2,3,4} and profits are {p1,p2,p3}={1,2,5}Given the capacity is 5,{W/M = 5 } Find the optimal solu...