Permutations/Combinations/Factorials/Combinadics/Combinatorics

Jul 2 2008 12:09 PM

Here is my issue.  I have an unknown data set that I must have every combination without repeating. 

At run time, the user will use check boxes to select my data set from 1-32 possible.  This is when I have my complete data set.

Example -  1,2,3,4

Would results -

1   1,2   1,2,3     1,2,4     1,2,3,4   1,3  1,3,4   1,4   2   2,3   2,3,4   2,4.....etc.

That is where the fun begins.  My data set could also look like 2,5,7,8,9 in which case I need to do skip any data not selected at run time.  In this case 1,3,4,6  My possible data set can have up to 32 individual pieces of data in it...1-32.

Any guidance would be helpful....thanks