I\'m trying to solve the following problem:
A rectangular paper sheet of M*N is to be cut down into squares such that: The paper i
A rectangular paper sheet of M*N is to be cut down into squares such that:
This is essentially classic integer or 0-1 knapsack problem that can be solved using greedy or dynamic programming approach. You may refer to: Solving the Integer Knapsack