RE: Defeating Murphy's laws and a new challenge

new topic     » goto parent     » topic index » view thread      » older message » newer message

Pete:
OK. But anyway, using your approach, I found number sequences that force the
program to work really hard. Now I'm analyzing them and perhaps I'll find a
way to defeat Murphy once more...
Regards.
----- Original Message -----
From: Pete Lomax <petelomax at blueyonder.co.uk>
Subject: Re: Defeating Murphy's laws and a new challenge



On Fri, 18 Apr 2003 23:00:17 -0300, rforno at tutopia.com wrote:

>Pete:
>What is the value for 'a' in Data[Lendata]+=2*a+1 ?
My apologies. I was updating the wrong ends of the array which is why
it defeated all the optimisations. Sorry. I take it all back, I can't
find a data set which messes it up either smile

One small point: if the highest value in the array is a partition all
by itself, eg {111,9,9,9,9,9,5,1,1,1}, then the partitions are
correctly printed but BestVal is zero.

Pete

==^^===============================================================
This email was sent to: rforno at tutopia.com


TOPICA - Start your own email discussion group. FREE!

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu