watashi has asked for the wisdom of the Perl Monks concerning the following question:
The Math::Combinatorics module facilitates combination generation but is it capable of generating more complex pattern? For example, given a set (a b c d e f g), is there any convenient way to generate lists with a parameter of "k: maximum number of elements to use", say, 3,
to give lists like:
ab c d e f g
a b c d e f g
abc d ef g
aef cdg b
etc.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Combinatorics of Math::Combinatorics
by frozenwithjoy (Priest) on Jul 21, 2012 at 03:54 UTC | |
|
Re: Combinatorics of Math::Combinatorics
by BrowserUk (Patriarch) on Jul 21, 2012 at 21:46 UTC | |
|
Re: Combinatorics of Math::Combinatorics
by Khen1950fx (Canon) on Jul 21, 2012 at 10:07 UTC | |
by tye (Sage) on Jul 21, 2012 at 20:26 UTC | |
|
Re: Combinatorics of Math::Combinatorics (Loops)
by tye (Sage) on Jul 22, 2012 at 02:18 UTC |