The power gain calculation algorithm is as follows:
(aka "input" ) A. , x. , poweret A ( P(A)) A. A : , x, , x. , , x, - A - x (A x ):
all subsets of A that don't include x = P(A-x)
A, x? , x x !
all subsets of A that include x = { for each S in P(A-x) : S+x }
, P(A):
P(A) = P(A-x) + { for each S in P(A-x) : S+x }
, : P(A-x), powerset xs, x, .