Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: Faster alternative to Math::Combinatorics

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


in reply to Re^2: Faster alternative to Math::Combinatorics
in thread Faster alternative to Math::Combinatorics

OK, AppleFritter, thanks for your answer.

Thinking more about it, what I get with this program is actually 27 permutations, not 27 combinations. But English is not my mother tongue (and, as far as I can say, probably also not yours), so I probably got a bit confused about it. And I did not know anything about multisets before (or had forgotten everything about it).

Thanks a lot for the clarification.

I haven't checked thoroughly, but it seems that the program I have suggested in my other post (http://www.perlmonks.org/?node_id=1198576) probably does what you want.

Update: And, BTW, my code in the other post runs in less than 1/20th of a second, so it is also fairly fast.

  • Comment on Re^3: Faster alternative to Math::Combinatorics

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-19 21:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found