in reply to Re: Puzzle: need a more general algorithm
in thread Puzzle: need a more general algorithm
Impressive.
Once you have the minimum height, calculating the actual partition is equivalent to the text justification problem, with each category being a word, its length being the word's length, and the minimum height being the line length. This has been done before.
In Section
Seekers of Perl Wisdom