A
anirbid.banerjee
Hi,
I have two Sets A and B with N DISTINCT elements each. Both A and B
are related to each other so that B contains complement of A. For eg.A
= {a, b, c} , B = {a*, b* c*}. I would need a perl script to generate
all possible combinations between A and B satisfying the following
conditions:
a) The number of elements in the Combined set n(C) = N.
b) None of the combination should contain both an element and its
complement : i.e. {a, a*, b}, {b,c, c*} are invalid combinations.
c) There should be exactly 2^N combinations.
Regards,
Anirbid
I have two Sets A and B with N DISTINCT elements each. Both A and B
are related to each other so that B contains complement of A. For eg.A
= {a, b, c} , B = {a*, b* c*}. I would need a perl script to generate
all possible combinations between A and B satisfying the following
conditions:
a) The number of elements in the Combined set n(C) = N.
b) None of the combination should contain both an element and its
complement : i.e. {a, a*, b}, {b,c, c*} are invalid combinations.
c) There should be exactly 2^N combinations.
Regards,
Anirbid