1.

What is the objective of the knapsack problem?(a) To get maximum total value in the knapsack(b) To get minimum total value in the knapsack(c) To get maximum weight in the knapsack(d) To get minimum weight in the knapsackI have been asked this question in an interview for internship.Enquiry is from Greedy Algorithms topic in section Greedy Algorithms of Data Structures & Algorithms II

Answer»

Correct ANSWER is (a) To get MAXIMUM total value in the knapsack

Explanation: The objective is to fill the knapsack of some GIVEN volume with different materials such that the value of SELECTED ITEMS is maximized.



Discussion

No Comment Found

Related InterviewSolutions