develooper Front page | perl.perl5.porters | Postings from August 2001

RE: [PATCH perlfaq4] Faster permutation algorithms

Thread Previous | Thread Next
Matt Sergeant
August 23, 2001 05:42
RE: [PATCH perlfaq4] Faster permutation algorithms
Message ID:
> +Unfortunately, this algorithm is very inefficient. The 
> Algorithm::Permute
> +module from CPAN runs at least an order of magnitude faster. 
> If you don't
> +have a C compiler (or a binary distribution of 
> Algorithm::Permute), then
> +you can use List::Permutor which is written in pure Perl, 
> and is still
> +several times faster than the toy algorithm above.

s/toy //;

While it's a "toy", it's also easy to grok, so let's not bother with trying
to pigeonhole it :-)

This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit or alternatively call
Star Internet for details on the Virus Scanning Service.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About