G
Guest
Guest
Archived from groups: comp.ai.games (More info?)
Hi,
I'm looking for a algorithm that creates unique sets from distinct
sets. For example, I have the following 3 sets that I want to create
different sets from.
Car: Mercedes, Honda, Toyota
Drink: water, juice, soda
Country: Brazil, Canada, England
The sets should have only one set item from the set. For example the
sets generated would be like:
Mercedes
Honda
Toyota
water
juice
soday
Brazil
Canada
England
Mercedes, water, Brazil
water, Brazil
Mercedes, Brazil
So these sets would be necessarily unique and will be all
possible-combinations of sets without two elements of one set being
together:
Mercedes, Honda, Brazil (invalid because Mercedes, Honda are from the
same set)
What kind of algorithm should I use for creating this.
Any suggestions?
Thanks,
Enkh
Hi,
I'm looking for a algorithm that creates unique sets from distinct
sets. For example, I have the following 3 sets that I want to create
different sets from.
Car: Mercedes, Honda, Toyota
Drink: water, juice, soda
Country: Brazil, Canada, England
The sets should have only one set item from the set. For example the
sets generated would be like:
Mercedes
Honda
Toyota
water
juice
soday
Brazil
Canada
England
Mercedes, water, Brazil
water, Brazil
Mercedes, Brazil
So these sets would be necessarily unique and will be all
possible-combinations of sets without two elements of one set being
together:
Mercedes, Honda, Brazil (invalid because Mercedes, Honda are from the
same set)
What kind of algorithm should I use for creating this.
Any suggestions?
Thanks,
Enkh