1.

Fractional knapsack problem can be solved in time O(n).(a) True(b) FalseI got this question during an online interview.Enquiry is from Greedy Algorithms in section Greedy Algorithms of Data Structures & Algorithms II

Answer»

The CORRECT choice is (a) True

The best I can explain: It is possible to solve the problem in O(n) TIME by ADAPTING the ALGORITHM for finding weighted MEDIANS.



Discussion

No Comment Found

Related InterviewSolutions