Generate All Possible Answers From Groups of Values
Posted on 2004-09-13
I have multiple groups of values that I need to generate all the possible combinations from. I have two parts to my question:
1. The best way to store these values. (Hashtable, DataTable, etc.)
2. Fastest way to generate all the possible combinations.
I have multiple groups with different values. (Randomly generated)
G1 G2 G3
A R X
B S Y
C T Z
The final answer is created by 1 value from each group in order. G1-G2-G3
I need to generate all the possible answers.
Thanks for the help!