retagged by
1,893 views
0 votes
0 votes
Value of V GREEDY - V OPT
retagged by

3 Answers

1 votes
1 votes
It was Vopt -Vgreedy

Ans Maybe 16
0 votes
0 votes
The Answer is 60 - 44 = 16.

It was a 0/1 Knapsack question. If you apply the optimal algorithm(Dynamic Programming), you will get 60 for Vopt.

If you apply the method that they listed, in the Vgreedy approach, you will get 44.

The answer cannot be negative, as it is a 0/1 knapsack so either the Optimal Algorithm will produce a result greater than or equal to the one produced by Greedy Approach.

Related questions

38 votes
38 votes
5 answers
1
gatecse asked Feb 14, 2018
22,227 views
Consider the weights and values of items listed below. Note that there is only one unit of each item.$$\begin{array}{|c|c|c|}\hline \textbf{Item number} & \textbf{Weigh...
35 votes
35 votes
9 answers
2
gatecse asked Feb 14, 2018
17,625 views
Consider the following undirected graph $G$:Choose a value for $x$ that will maximize the number of minimum weight spanning trees (MWSTs) of $G$. The number of MWSTs of $...
35 votes
35 votes
7 answers
3