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…
I just wrote a short solution in JavaScript which will find the power set of a given array. Here is the link: http://gotochriswest.com/blog/2011/05/02/power-set/