1. Computer Science Engineering (CSE)
  2. Design and Analysis of Algorithms
  3. Fractional knapsack problem can be solve...
Q.

Fractional knapsack problem can be solved in time O(n).

A. true
B. false
Answer» A. true
Explanation: it is possible to solve the problem in o(n) time by adapting the algorithm for finding weighted medians.

Discussion