[Shootout-list] Re: Integer overflow
David Pyke
David Pyke" <shootout-list@lists.alioth.debian.org
Sun, 26 Sep 2004 08:55:54 +0100
I have 2 points to make.
>----- Original Message -----
> From: "Brent Fulgham" <bfulgham@debian.org>
-snip-
> Why don't we modify the input file so that it includes sufficient
> distribution of
> positive and negative numbers that any combination of copies of the file
> is always clamped below 2^30? This should address Brandon and Brian's
> concerns, while giving me a philosophical way out of the argument :-)
-snip-
1.) I would suggest a secondary input file to avoid overflow if at all. (as
opposed to changing teh exiting one)
i feel that _for this test_ that overflow is BAD as the result is not the
"sum of values" and given that goal I would be hard pressed to accept that
1,4,6,8,9 and 7 sum to -43 (thats not an actual example btw)
and secondly, is it juts me or has the volume of traffic on this list
increased dramatically in the last 1-2 weeks?
David.