Consider the brute force implementation of the rod cutting problem in which all the possible cuts are found and the maximum value is calculated.

Thu Ha

New member
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?
A. O(n$^{2}$)
B. O(n$^{3}$)
C. O(nlogn)
D. O(2$^{n}$)
 

Tìm kiếm

Back
Top