Hi, first of all sorry for my bad english, I'm not, I would like ask You if You can help me for creating one program in VB 2010 that can make provisions with repetition, that is make all combinations with N elements, grouped for K (N and K variables).
For example, I have:
N= 3
K= 2
Possible combinations (groups) = 3^2 = 9
I have created one matrix with the number of colums equal to K, and the numer of rows equal to N, like this, in this example:
A - A
B - B
C - C
How I can make the 9 groups with one function ?
In this case the groups will be:
AA, AB, AC, BA, BB, BC, CA, CB, CC
PS: Thank for Yours helps, and excuse me if I wasn't clear ;).
For example, I have:
N= 3
K= 2
Possible combinations (groups) = 3^2 = 9
I have created one matrix with the number of colums equal to K, and the numer of rows equal to N, like this, in this example:
A - A
B - B
C - C
How I can make the 9 groups with one function ?
In this case the groups will be:
AA, AB, AC, BA, BB, BC, CA, CB, CC
PS: Thank for Yours helps, and excuse me if I wasn't clear ;).