in reply to Re: Finding the simplest combination of descrete thicknesses that sums nearest to the target thickness.
in thread Finding the simplest combination of descrete thicknesses that sums nearest to the target thickness.
Consider the case where you have blocks with width/thickness pairs of 4,3, 1,5 and 3,2. They can be arranged into the following pattern to form a 5,8 square:
(I've actually drawn each horizontal space as 2 characters...)_______ _ | | | | | | |_______| | | | | | | |_____|_| | | | | | | |_|_______|
I assert that that example can't be broken down as you claimed it could. A brute force proof is fairly straightforward. You have to put some block in the top left corner. Let's examine each possibility.
|
|---|