> -----Original Message----- > From: Janek Schleicher [mailto:[EMAIL PROTECTED]] > Sent: 19 September 2002 16:47 > To: [EMAIL PROTECTED] > Subject: RE: lots of numbers... >
> I liked your algorithm as it is quick and easy. > But on the other hand the results aren't as good as possible. Actually, I do believe that the results are as good as possible, for any distribution of numbers. 8-) consider that the first pass creates the best possible approximation available by pairing the min and max. The second pass merges the remaining values into the approximations, by processing both the approximations and remaining numbers in sorted order - ergo, it will produce the best possible result, irrespective of the distribution of numbers. Regards Jeff -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]