πŸ“Š Design and Analysis of Algorithms
Q. Fractional knapsack problem can be solved in time O(n).
  • (A) true
  • (B) false
  • (C) ---
  • (D) ---
πŸ’¬ Discuss
βœ… Correct Answer: (A) true

Explanation: it is possible to solve the problem in o(n) time by adapting the algorithm for finding weighted medians.


Explanation by: Mr. Dubey
it is possible to solve the problem in o(n) time by adapting the algorithm for finding weighted medians.

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
688
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
87%
Success Rate