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.
Q. Which of the following is true about the time complexity of the recursive solution of set partition problem?
β
Correct Answer: (A)
it has an exponential time complexity
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