We don't bite newbies here... much | |
PerlMonks |
Re^4: Generating powerset with progressive orderingby tlm (Prior) |
on Apr 26, 2005 at 23:46 UTC ( [id://451800]=note: print w/replies, xml ) | Need Help?? |
A powerset should always include the empty set. (The cardinality of the powerset of a set of cardinality n should be 2n.) Therefore, you can simplify powerset: I imagine that this means that only two states are needed in iter_powerset. the lowliest monk
In Section
Seekers of Perl Wisdom
|
|