Ticker

6/recent/ticker-posts

Header Ads Widget

Responsive Advertisement

C program to perform power set operation on set

power set :- power set of a Set A is defined as the set of all subsets of the Set A including the Set itself and the null or empty set. It is denoted by P(A). Basically, this set is the combination of all subsets including null set, of a given set.
Example of Power Set:- Let us say Set A = { a, b, c } The power set P(A) = { { } , { a }, { b }, { c }, { a, b }, { b, c }, { c, a }, { a, b, c } } Now, the Power Set has 23 = 8 elements.



When the above program is executed, it produces following results --



Post a Comment

0 Comments