[TAG] Max-spread algorithm

Karl-Heinz Herrmann khh at khherrmann.de
Thu Jul 5 11:06:30 MSD 2007


On Wed, 4 Jul 2007 22:50:50 -0400
Ben Okopnik <ben at linuxgazette.net> wrote:

> Can you reproduce this algorithm? :) I found it a very interesting
> exercise, myself.


Hm.... line up all porks, start puting in one tomato in the gaps until
tomate are out or alternatively gaps are out. If gaps are out start
again at the beginning putting an additional tomato in the gaps. Repeat
till tomatoes are gone.... 


K.-H.




More information about the TAG mailing list