- 5,197
- 38
I'm trying to understand why, in two-valued boolean algebra, for n variables, it is possible to form 22n different boolean functions. The textbook explanation is not quite clear.
Thanks
Thanks
cepheid said:uart: sorry dude, I'm going with the book on this one...
abc f0 f1 f2 f3 f4 f5 f6 f7 ...
--- -- -- -- -- -- -- -- --
000 0 0 0 0 0 0 0 0
001 0 0 0 0 0 0 0 0
010 0 0 0 0 0 0 0 0
011 0 0 0 0 0 0 0 0
100 0 0 0 0 0 0 0 0
101 0 0 0 0 1 1 1 1
110 0 0 1 1 0 0 1 1
111 0 1 0 1 0 1 0 1
From Digital Design, Third Edition, by M. Morris Mano, pg. 46:
It was previously stated that for n binary variables, one can obtain 2n distinct minterms, and that any Boolean function can be expressed as a sum of minterms . The minterms whose sum define the Boolean function are those that give the 1's of a function in a truth table. Since the function can be either 1 or 0 for each minterm, and since there are 2n minterms, one can calculate the possible functions that can be formed with n variables to be 22n.
and since there are 2^n minterms, one can calculate the possible functions that can be formed with n variables to be 2^(2n)