ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
Consider the brute force implementation of the rod cutting problem in which all the possible cuts are found and the maximum value is calculated. What is the time complexity of this brute force implementation?
Correct Answer: D — O(2^{n})
The brute force implementation finds all the possible cuts. This takes O(2^{n}) time.