Description
Reported by [email protected], Feb 23, 2015
For the ComplexCombinationGenerator it should not only be possible to specify the number of groups, but also the number of elements in every group. E.g. searching for [1, 2, 3, 4, 5, 6] only searching for groups of length 3 should output:
[1] 1 3 5
[2] 2 4 6
[1] 1 3 4
[2] 2 5 6
[1] 1 3 4
[2] 2 6 5
[1] 1 2 5
[2] 3 4 6
[1] 1 2 4
[2] 3 5 6
[1] 1 2 4
[2] 3 6 5
[1] 1 2 5
[2] 4 3 6
[1] 1 2 3
[2] 4 5 6
[1] 1 2 3
[2] 4 6 5
[1] 1 2 4
[2] 5 3 6
[1] 1 2 3
[2] 5 4 6
[1] 1 2 3
[2] 5 6 4
[1] 1 2 4
[2] 6 3 5
[1] 1 2 3
[2] 6 4 5
[1] 1 2 3
[2] 6 5 4
Generating all the items and using an IFilter is very slow. Taking the length of the sub lists into concideration should speed up the generation a lot. Please see an algorithm in R as reference: http://stackoverflow.com/a/14758057
Thanks & regards, Kristian