Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Faster alternative to Math::Combinatorics

by Laurent_R (Canon)
on Sep 02, 2017 at 11:40 UTC ( [id://1198575]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
            make_sets1( $weight -1, "$temp_result$item, ");
        }
    }
    
  2. or download this
    $ time perl  multisets.pl
    count = 1
    ...
    real    0m0.141s
    user    0m0.046s
    sys     0m0.031s
    
  3. or download this
    $ time perl  multisets.pl > /dev/null
    
    real    0m0.057s
    user    0m0.015s
    sys     0m0.015s
    
  4. or download this
    count = 3
    0, 0, 0,
    ...
    3, 3, 0,
    3, 3, 2,
    3, 3, 3,
    
  5. or download this
    count=3
    3,0,0
    ...
    0,0,0
    0,2,2
    2,2,2
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1198575]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-19 22:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found