McqMate
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) |
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). |
View all MCQs in
Design and Analysis of AlgorithmsNo comments yet