SpinningAround
August 13th, 2010, 10:11 PM
I trying to solve a problem, but can't find a proper algorithm to do so or if it's even possible.
The problem is as follow. I have a length, this length is going to be divided into different values in such a way that a small or no quotient is left.
Example:
Length is 11 and I want it to be divided into items with length 2, 3 and 4. Optimal division for this would be 4 4 3, 2 2 4 3, 2 2 2 2 3.
The problem is as follow. I have a length, this length is going to be divided into different values in such a way that a small or no quotient is left.
Example:
Length is 11 and I want it to be divided into items with length 2, 3 and 4. Optimal division for this would be 4 4 3, 2 2 4 3, 2 2 2 2 3.