M
Explanation by: Mr. Dubey
greedy algorithm is used to solve this problem. we first sort items according to their value/weight ratio and then add item with highest ratio until we cannot add the next item as a whole. at the end, we add the next item as much as we can.
You must be Logged in to update hint/solution
Related MCQs
Q. A packet whose destination is outside the local TCP/IP network segment is sent to the ___ _.
Q. Which of the following is non-functional testing?
Q. Most user interface design patterns fall with in one of ____ categories of patterns.
Q. Which of the following statements is not applicable for cable internet access?
Discusssion
Login to discuss.