Q. What will be the auxiliary space complexity of dynamic programming solution of set partition problem(sum=sum of set elements)?

  • (A) o(n log n)
  • (B) o(n2)
  • (C) o(2n)
  • (D) o(sum*n)
πŸ’¬ Discuss
βœ… Correct Answer: (D) o(sum*n)
Explanation: the auxiliary space complexity of set partition problem is required in order to store the partition table. it takes up a space of n*sum, so its auxiliary space requirement becomes o(n*sum).

Explanation by: Mr. Dubey
the auxiliary space complexity of set partition problem is required in order to store the partition table. it takes up a space of n*sum, so its auxiliary space requirement becomes o(n*sum).

πŸ’¬ Discussion

πŸ“Š Question Analytics

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