in reply to Partitioning a set into parts of given sizes
In any case, I have a few comments. First, why do you require that the block sizes add up to the total number of items? I had to work around this restriction by generating the combinations of a fixed size and then using your code to partition the combinations. It would be nice if that restriction were @sum @block_size <= @items.
The second comment is about availability on CPAN. I think this is something that might be of great value to others. I had intended to simplify my code but would love to make this a collaborative effort. Your thoughts?
Cheers - L~R
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Partitioning a set into parts of given sizes
by blokhead (Monsignor) on Nov 21, 2006 at 15:07 UTC | |
by Limbic~Region (Chancellor) on Nov 21, 2006 at 18:45 UTC |