SOLUTION: generate all the subsets of A={a,b,c,d,e,f,g,h,i}

Algebra.Com
Question 1064942: generate all the subsets of A={a,b,c,d,e,f,g,h,i}
Answer by Alan3354(69443)   (Show Source): You can put this solution on YOUR website!
There are 512 of them.
Do it like this:
a b c d e f g h i 
0 0 0 0 0 0 0 0 0 {}
0 0 0 0 0 0 0 0 1 {i}
0 0 0 0 0 0 0 1 0 {h}
0 0 0 0 0 0 0 1 1 {h,i}
.
.
.
1 1 1 1 1 1 1 1 1 {a,b,c,d,e,f,g,h,i}

Count in binary.

RELATED QUESTIONS

Generate all the subsets of A={a, b, c, d, e, f, g, h,... (answered by ikleyn)
generate all the subset of... (answered by Fombitz,Alan3354)
Without writing them down what are the number of subsets of the set A = {a, b, c, d, e,... (answered by Mathtut)
Given the set B= {a, b, c, d, e, f, g, h}, how many subsets does B... (answered by ikleyn)
Without writing them down, what are the number of subsets of the set A = {a, b, c, d, e}? (answered by solver91311)
How many four-element subsets containing two vowels and two consonants can be formed from (answered by stanbon)
Let A = {a, b, c, d, e, f, g}. How many subsets does A have? what are the set of all... (answered by sachi)
How many subsets of {a,b,c,d,e,f,h,I} are there and show then (answered by greenestamps)
Without writing them down, what are the number of subsets of the set A = {a, b, c, d, e}? (answered by jim_thompson5910)