
i
i
“main-v1” — 2012/4/28 — 9:15
i
i
i
i
Appendix B
Some Mathematical
Formulae
B.1 Number of Boolean Functions
For an arbitrary n, there are 2
n
monomial terms in n variables, and a boolean
function is a sum of a subset of those monomials. Therefore, there are a total
of 2
2
n
different boolean functions, as shown in Table B.1 where
n
t
!
is the
number of different ways to choose t objects from a set of n different objects.
Table B.1: Monomials in a boolean function
.
Degree Monomials Total number
constant a 1
linear x
0
, ··· , x
n−1
n
quadratic x
0
x
1
, x
0
x
2
, ··· , x
n−2
x
n−1
n
2
!
.
.
.
t x
0
x
1
···x
t−1
, ··· , x
i
1
x
i
2
···x
i
t
, ··· ,
n
t
!
.
.
.
n x
0
···x
n−1
1
707