- 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
The discussion revolves around the number of distinct Boolean functions that can be formed with n binary variables in two-valued Boolean algebra. Participants explore the reasoning behind the formula for the number of functions, addressing both theoretical and practical aspects, including truth tables and minterms.
Participants do not reach a consensus on the correct formula for the number of Boolean functions, with some supporting 2^(2^n) and others adhering to 2^(2n). The discussion remains unresolved regarding the accuracy of the textbook's claims.
There are unresolved questions about the assumptions underlying the calculations and the definitions of terms used, particularly regarding minterms and the representation of functions in truth tables.
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)