Algorithm-Combinatorics
(0.26)
Algorithm::Combinatorics has good documentation and a very good interface. It's intuitive to use.
It would be good to refine optional parameters $min:
subsets(\@data[, $max, $min])
optional parameters:
$max ($k) --- the iteration runs over subsets of data of size $max ($k)
$min --- the bottom limit.
For example:
subsets( [A, B, C, D], 4, 2)
Output:
A B C D
A B C
A B D
A C D
B C D
A B
A C
A D
B C
B D
C D
Many thanks for the module.
Alessandro Gorohovski - 2011-06-18T07:20:13 (permalink)
1 out of 1 found this review helpful.
Was this review helpful to you?
Yes
No

