Given a rod of length n and the selling prices of all pieces smaller than equal to n, find the most beneficial way of cutting the rod into

Tâm Tây

New member
Given a rod of length n and the selling prices of all pieces smaller than equal to n, find the most beneficial way of cutting the rod into smaller pieces. This problem is called the rod cutting problem. Which of these methods can be used to solve the rod cutting problem?
A. Brute force
B. Dynamic programming
C. Recursion
D. Brute force, Dynamic programming and Recursion
 

Tìm kiếm

Back
Top