Recent questions tagged greedy-algorithm

4 votes
1 answer
32
Show how to solve the fractional knapsack problem in $O(n)$ time.
0 votes
1 answer
36
38 votes
5 answers
37
0 votes
3 answers
38
Value of V GREEDY - V OPT
1 votes
1 answer
41
Unlike greedy algorithms, dynamic programming method always provide correct/optimal solution.Is the above statement correct?
0 votes
1 answer
42
The following Knapsack bag. The Knapsack bag maximum Capacity is 50. Find out the maximum profit for Fractional Knapsack. PQRSTUVWWeight1812161416201015Profit341522161722...
2 votes
2 answers
43
Assume coins with denominator 20,15,5 and 1 are available ,we are required to make a sum of 33,using minimum number of coins.Difference between answer using greedy techni...
4 votes
1 answer
45
1 votes
1 answer
46
worst case time complexity of job sequencing with deadline using greedy algorithm
0 votes
3 answers
47
What will be the time complexity to obtain optimal merge pattern to merge files using greedy technique?
0 votes
0 answers
49
Given n activities with their start and finish times.Select d mad no of activities dat can be performed by a single​ person assuming tat a person can only work on a sin...
0 votes
1 answer
50
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
51
$\begin{bmatrix} 0& 29& 19& 25& 22\\ 20& 0& 21& 23& 21\\ 19& 21& 0& 21& 20\\ 25& 23& 21& 0& 32\\ 22& 21& 20& 22& 0 \end{bmatrix}$Find the shortest tour for given graph us...
1 votes
1 answer
52
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...
2 votes
1 answer
54
3 votes
3 answers
57