1.

The result of the fractional knapsack is greater than or equal to 0/1 knapsack.(a) True(b) FalseI got this question in an interview for internship.Question is taken from Greedy Algorithms in portion Greedy Algorithms of Data Structures & Algorithms II

Answer»

Correct choice is (a) True

To explain: As fractional knapsack GIVES extra liberty to include the object PARTIALLY which is not possible with 0/1 knapsack, thus we get better RESULTS with a fractional knapsack.



Discussion

No Comment Found

Related InterviewSolutions