Q. Which of the following is not true about subset sum problem?

  • (A) the recursive solution has a time complexity of o(2n)
  • (B) there is no known solution that takes polynomial time
  • (C) the recursive solution is slower than dynamic programming solution
  • (D) the dynamic programming solution has a time complexity of o(n log n)
πŸ’¬ Discuss
βœ… Correct Answer: (D) the dynamic programming solution has a time complexity of o(n log n)
Explanation: recursive solution of subset sum problem is slower than dynamic problem solution in terms of time complexity.

Explanation by: Mr. Dubey
recursive solution of subset sum problem is slower than dynamic problem solution in terms of time complexity.

πŸ’¬ Discussion

πŸ“Š Question Analytics

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