Boolean Algebras Lecture Notes
Boolean Algebras Lecture Notes
By Dr. Runji F
Introduction:
In mathematics and mathematical logic, Boolean algebra is the branch
of algebra in which the values of the variables are the truth values true and
false, usually denoted 1 and 0, respectively.
Boolean algebra provides the operations and the rules for working with the
set {0,1}.
Electronic and optical switches can be studied using this set and the rules
of Boolean algebra.
The three operations in Boolean algebra that are mostly used are
complementation, the Boolean sum, and the Boolean product.
The complement of an element, denoted with a bar, is defined by 0 1
and 1 0 .
The Boolean sum, denoted by + or by OR, has the following values:
1+ 1 = 1,
1+0 = 1,
0+1 = 1,
0+0 = 0.
The Boolean product, denoted by (.) or by AND, has the following values:
1.1 = 1,
1· 0 = 0,
0· 1 = 0,
0· 0 = 0
The symbol (∙) can be deleted just as in algebraic product if there is no
danger of confusion.
Page 1 of 12
The order of Operations is as follows:
✓ Parenthesis
✓ Compliments
✓ Boolean product and finally
✓ Boolean sum
Page 2 of 12
Boolean Expressions and Boolean Functions
Let B 0,1 . Then Bn x1, x2 ,..., xn : xi B for 1 i n is the set of all possible
n-tuples of 0’s and 1’s.
The variable x is called a Boolean variable if it assumes values only from B,
that is, if its only possible values are 0 and l.
A function from B n to B is called a Boolean function of degree n.
Example:
Find the values of the Boolean function represented by 𝐹(𝑥, 𝑦, 𝑧) = 𝑥𝑦 + 𝑧̅
Solution:
The values of this function are displayed in Table below.
Page 3 of 12
Equivalent Boolean functions
Boolean functions F and G of n variables are equal if and only if
F ( b1 , b2 , ..., bn ) G ( b1 , b2 , ..., bn ) whenever b1 , b2 , ... , bn belong to B.
Two different Boolean expressions that represent the same function are
called equivalent.
For instance, the Boolean expressions xy, xy + 0, and xy . 1 are equivalent.
The complement of the Boolean function F is the function 𝐹̅ , where
F ( x1 , x2 , ..., xn ) F ( x1, x2 , ..., xn )
Page 4 of 12
Example: How many different Boolean functions of degree n are there?
Solution: From the product rule for counting, it follows that there are 2n
different n-tuples of 0’s and 1’s. Because a Boolean function is an
assignment of 0 or 1 to each of these 2n different n-tuples, the product rule
shows that there are 22 different Boolean functions of degree n.
n
Page 5 of 12
Identities of Boolean Algebra
There are many identities in Boolean algebra. The most important of these
are displayed in Table 5. These identities are particularly useful in
simplifying the design of circuits. Each of the identities can be proved
using a table.
Example : Show that the distributive law x(y + z) = xy + xz is valid.
Solution: The verification of this identity is shown in the table below. The
identity holds because the last two columns of the table agree.
x y z 𝑦 + 𝑧 𝑥𝑦 𝑥𝑧 𝑥(𝑦 + 𝑧) 𝑥𝑦 + 𝑥𝑧
1 1 1 1 1 1 1 1
1 1 0 1 1 0 1 1
1 0 1 1 0 1 1 1
1 0 0 0 0 0 0 0
0 1 1 1 0 0 0 0
0 1 0 1 0 0 0 0
0 0 1 1 0 0 0 0
0 0 0 0 0 0 0 0
Page 6 of 12
Page 7 of 12
Example
Solution 𝑝 ∨ (𝑞 ∧ 𝑟) ≡ (𝑝 ∨ 𝑞) ∧ (𝑝 ∨ 𝑟)
Example
= 𝑥 + 𝑦. 0 commutative law
=𝑥 Identity law
Duality
The dual of a Boolean expression is obtained by interchanging Boolean
sums and Boolean products and interchanging 0’s and 1’s.
Example
solutions; 𝑥 + (𝑦 ∙ 1)
(𝑥̅ + 0)(𝑦̅𝑧)
Example
𝑥 + 𝑥𝑦 = 𝑥
Page 8 of 12
Abstract definition of a Boolean Algebra
yi is xi or x i
Page 10 of 12
Example: Find the disjunctive normal form for the Boolean function F
defined by the table below
Page 11 of 12
Page 12 of 12