
August 6th, 2003, 06:00 AM
|
|
Junior Member
|
|
Join Date: Aug 2003
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Combinations into an Array?
Using vb.net, I'd like to create an array of all possible combinations of a set of X objects from a master set of Y objects.
i.e. If Y = {1 2 3 4 5 6 7} and the sub set limit is 2 then a partial list of combinations would be {1 2}, {1 3} {1 4}...but {4 1} would NOT be in the subset because {1 4} and {4 1} are different permutations but NOT different combinations.
I don't want the permutations, only the combinations.
Thanks!
|