πŸ“Š Design and Analysis of Algorithms
Q. Which of the following is true about the time complexity of the recursive solution of set partition problem?
  • (A) it has an exponential time complexity
  • (B) it has a linear time complexity
  • (C) it has a logarithmic time complexity
  • (D) it has a time complexity of o(n2)
πŸ’¬ Discuss
βœ… Correct Answer: (A) it has an exponential time complexity

Explanation: set partition problem has both recursive as well as dynamic programming solution. the recursive solution has an exponential time complexity as it will require to check for all subsets in the worst case.


Explanation by: Mr. Dubey
set partition problem has both recursive as well as dynamic programming solution. the recursive solution has an exponential time complexity as it will require to check for all subsets in the worst case.

πŸ’¬ Discussion

πŸ“Š Question Analytics

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