nuaz
February 5th, 2009, 07:33 PM
Hi all,
i've a simple problem to solve but i'm a bit rusty with algorithms and i can't figure it out yet.
I have to calculate all the subset of a note set.
for example:
S = [A,B,C,D,E]
i need all the subsets of all cardinality like [A,B,C,D,E,AB,AC,AD,AE,BC,BD,BE,CD,CE,DE,ABC,ABD .... and so on..]
i use c# as programming language but obviously all kind of answers are very accepted.
any help ?
thanks
i've a simple problem to solve but i'm a bit rusty with algorithms and i can't figure it out yet.
I have to calculate all the subset of a note set.
for example:
S = [A,B,C,D,E]
i need all the subsets of all cardinality like [A,B,C,D,E,AB,AC,AD,AE,BC,BD,BE,CD,CE,DE,ABC,ABD .... and so on..]
i use c# as programming language but obviously all kind of answers are very accepted.
any help ?
thanks