P($n,$r) and C($n,$r)
I've written a couple of little recursive routines that provide arrays or arrayrefs of arrayrefs of all the possible permutations and combinations, of sets of n items, counting from 0 to n-1, and wondering if such a thing is worth cluttering up CPAN with. I'm using them for this crazy four-dimensional chess board... -- A vote for anyone other than Ron Paul is a vote to continue paying income tax
Re: P($n,$r) and C($n,$r)
On Feb 4, 2008, at 5:39 PM, David Nicol wrote: I've written a couple of little recursive routines that provide arrays or arrayrefs of arrayrefs of all the possible permutations and combinations, of sets of n items, counting from 0 to n-1, and wondering if such a thing is worth cluttering up CPAN with. There are some modules about combinatorics in CPAN, aren't those subroutines already covered by them? -- fxn