FLUKE?

From: Christopher Smith <csmith_at_amdocs.com>
Date: Tue Dec 4 09:57:22 2001

> -----Original Message-----
> From: pete_at_dunnington.u-net.com [mailto:pete_at_dunnington.u-net.com]

> You're supposed to stop one position shorter each time,
> because by the end
> of the sweep, the largest (or smallest, depending on which
> way you do the
> comparison-and-swap) number has fallen to the bottom (end) of
> the array.
> It makes a big difference to the time it takes.

You're right. It would. Wirth had a better example in one of his books,
but I didn't want to type it all in. ;)

Regards,

Chris


Christopher Smith, Perl Developer
Amdocs - Champaign, IL

/usr/bin/perl -e '
print((~"\x95\xc4\xe3"^"Just Another Perl Hacker.")."\x08!\n");
'
 
Received on Tue Dec 04 2001 - 09:57:22 GMT

This archive was generated by hypermail 2.3.0 : Fri Oct 10 2014 - 23:33:37 BST