Create a function, called powerSet(), that will output the power set of the input set.

The power set in Algebra theory is the set of all subsets of a set
(no..bull-set!) If a set has N elements then the power set will have
2^N elements. So if a set is denoted by {a,b} with a,b as elements then
the power set is { {},{a},{b},{a,b} }.
The {} is the empty set.

Can anybody help? best of all answers comes here…

One thought on “Create a function, called powerSet(), that will output the power set of the input set.

Leave a Reply

Your email address will not be published. Required fields are marked *