i will be given a set of any length and my program will have to produce the power set.
For example:
input: c d e
output:
empty
c
d
e
cd
de
ce
cde
total number of subsets: 2^3 = 8
I will try to write my own code, but need to to know what the algorithm would be like( an efficient one), recursive or non-recursive whatever be ur suggestion plz do explain.