Slide DicreteMath
Slide DicreteMath
1 Boolean Functions
Introduction
Boolean Expressions and Boolean Functions
Identities of Boolean Algebra
Duality
The Abstract Definition of a Boolean Algebra
1=0 and 0 = 1.
1 + 1 = 1, 1 + 0 = 1, 0 + 1 = 1, 0 + 0 = 0.
1 · 1 = 1, 1 · 0 = 0, 0 · 1 = 0, 0 · 0 = 0.
BTEC – Pearson Discrete Maths Lecture 11 4 / 32
Note
When there is no danger of confusion, the symbol · can be deleted, just as in writing
algebraic products.
Unless parentheses are used, the rules of precedence for Boolean operators are
1 all complements are computed,
2 all Boolean products,
3 all Boolean sums.
Solution. Using the definitions of complementation, the Boolean sum, and the Boolean
product, it follows that
1 · 0 + (0 + 1) = 0 + 1
=0+0
= 0.
x y F (x, y)
1 1 0
1 0 1
0 1 0
0 0 0
0, 1, x1 , x2 , . . . , xn
x y z xy z F (x, y, z) = xy + z
1 1 1 1 0 1
1 1 0 1 1 1
1 0 1 0 0 0
1 0 0 0 1 1
0 1 1 0 0 0
0 1 0 0 1 1
0 0 1 0 0 0
0 0 0 0 1 1
Example
The function F (x, y, z) = xy + z from B 3 to B in the above example can be represented by
distinguishing the vertices that correspond to the five 3-tuples
(1, 1, 1), (1, 1, 0), (1, 0, 0), (0, 1, 0), and (0, 0, 0),
where F (x, y, z) = 1, as shown in the figure belows. These vertices are displayed using solid
black circles. 110 111
101
100
010 011
000 001
BTEC – Pearson Discrete Maths Lecture 11 18 / 32
Boolean functions F and G of n variables are equal if and only if
F (b1 , b2 , . . . , bn ) = G(b1 , b2 , . . . , bn )
F (x1 , . . . , xn ) = F (x1 , . . . , xn ).
Let F and G be Boolean functions of degree n. Then,
the Boolean sum F + G is defined by
In the following table, we display the values of the 16 different Boolean functions of degree
two, labeled F1 , F2 , . . . , F16 .
The following table displays the number of different Boolean functions of degrees one through
six. The number of such functions grows extremely rapidly.
The Number of Boolean Functions of Degree n
Degree N umber
1 4
2 16
3 256
4 65, 536
5 4, 294, 967, 296
6 18, 446, 744, 073, 709, 551, 616
BTEC – Pearson Discrete Maths Lecture 11 21 / 32
Quiz
How many different Boolean functions are there of degree 7?
Note
x(x + y) = x is called an absorption law because absorbing x + y into x leaves x unchanged.
The identities in TABLE Boolean Identities come in pairs (except for the law of the double
complement and the unit and zero properties). To explain the relationship between the two
identities in each pair we use the concept of a dual. The dual of a Boolean expression is
obtained by interchanging Boolean sums and Boolean products and interchanging 0s and 1s.
Example
Find the duals of x(y + 0) and x · 1 + (y + z).
Solution. Interchanging · signs and + signs and interchanging 0s and 1s in these expressions
produces their duals. The duals are x + (y · 1) and (x + 0)(yz), respectively
Example
Construct an identity from the absorption law x(x + y) = x by taking duals.
Solution. Taking the duals of both sides of this identity produces the identity x + xy = x,
which is also called an absorption law and is shown in TABLE Boolean Identities.