ShoutMix chat widget

Wednesday, October 15, 2008

Power Set

The power set of some set S, denoted \mathcal{P}(S), is the set of all subsets of S (including S itself). NB: The empty set is a subset of all sets.

Examples:

1.

Input: 0,1

Output:{{},{0},{1},{0,1}}

2.

Input: i,love,you

Output: {null},{i},{love},{i,love},{you},{i,you},{love,you},{i,love,you}

Download


No comments: