Explanation: the brute force implementation finds all the possible cuts. this takes o(2n) time.
Q. 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(2n)
Explanation by: Mr. Dubey
the brute force implementation finds all the possible cuts. this takes o(2n) time.
Discussion
Question Analytics
469
Total Visits
3 y ago
Published
Mr. Dubey
Publisher
97%
Success Rate