Lecture 4
Lecture 4
Boolean function
Boolean algebra is an algebra that deals with binary
variables and logic operations. A Boolean function
described by an algebraic expression consists of binary
variables, the constants 0 and 1, and the logic operation Truth table for F1 and F2
symbols. For a given value of the binary variables, the
x y z F1 F2
function can be equal to either 1 or 0. As an example,
consider the Boolean function 0 0 0 0 0
F1 = x + x′y′z= = (x + x′)(x + y′z)=(x + y′z) 0 0 1 1 1
The function F1 is equal to 1 if x is equal to 1 or if both y′
and z are equal to 1. F1 is equal to 0 otherwise. The 0 1 0 0 0
complement operation dictates that when y = 1, y′ = 0. 0 1 1 0 1
Therefore, F1 = 1 if x = 1 or if y = 0 and z = 1. A Boolean
function expresses the logical relationship between binary 1 0 0 1 1
variables and is evaluated by determining the binary value 1 0 1 1 1
of the expression for all possible values of the variables.
1 1 0 1 0
A Boolean function can be represented in a truth table. The
number of rows in the truth table is 2n, where n is the 1 1 1 1 0
number of variables in the function.
1
07/01/2024
Example:
1) x′y′z+x′yz+xy′ Example:
= x′z(y′+y)+xy′ 4) x+x′y+y′+(x+y′)x′y
= x′z+xy′ [A+A′=1] = x+x′y+y′+xx′y +y′x′y
2) xy+xywz+xz = x+x′y+y′ [AA′=0]
= xy(1+wz)+xz =(x+x′)(x+y)+y′ [x+yz=(x+y)(x+z)]
= xy+xz [A+1=1] =x+y+y′ [A+A′=1]
=x(y+z) =x+1 [A+1=1]
3) z(y+z)(x+y+z) =1
=(yz+zz)(x+y+z) 5) (xy′)′(y′+z) Example:
=(yz+z)(x+y+z) [z.z=z] = (x′+y)(y′+z) 6) (ABC)′(A+C)(A+C′)
=(xyz+yz+yz+xz+yz+zz) = (x′y′+ x′z+ yy′+yz) =(A′+B′+C′)(AA+CC′)
=(xyz+yz+xz+z) = x′y′+ x′z+yz [x+yz=(x+y)(x+z)]
=yz(x+1)+z(x+1) = x′(y′+z)+yz =(A′+B′+C′)A
=yz+z =AA′+AB′+AC′
=z(y+1) =A(B′+C′)
=z
2
07/01/2024
Complement of a function
The complement of a function F is F′ and is obtained from an interchange of 0′s for 1′s and
1′s for 0′s in the value of F. The complement of a function may be derived algebraically
through DeMorgan′s theorems.
DeMorgan′s theorems for any number of variables resemble the two‐variable case in form
and can be derived by successive substitutions similar to the method used in the preceding
derivation. These theorems can be generalized as follows:
(A+B +C+D+……………..F)′ = A′ B′ C′ D′………….F′
(A.B.C.D.……………..F)′ = A′+B′+C′+D′………….+F′
3
07/01/2024
Example:
Since each one of these minterms results in f1 = 1, we have
f1 = x′y′z + xy′z′ + xyz = m1 + m4 + m7
Similarly, it may be easily verified that
EXAMPLE 2.4
Express the Boolean function F = A + B′C as a sum of minterms. Truth table for F=A+B′C
The function has three variables: A, B, and C. The first term A is missing two variables; therefore,
A B C F
A = A(B + B′) = AB + AB′
0 0 0 0
This function is still missing one variable, so
A = AB(C + C′) + AB′(C + C′) 0 0 1 1
= ABC + ABC′ + AB′C + AB′C′ 0 1 0 0
The second term B′C is missing one variable; hence,
0 1 1 0
B′C = B′C(A + A′) = AB′C + A′B′C
1 0 0 1
Combining all terms, we have
F = A + BC′ = ABC + ABC′ + AB′C + AB′C′ + A′B′C 1 0 1 1
But AB′C appears twice, and according to theorem 1 (x + x = x), it is possible to remove one 1 1 0 1
of those occurrences. Rearranging the minterms in ascending order, we finally obtain
1 1 1 1
F = ABC + ABC′ + AB′C + AB′C′ + A′B′C = = m1 + m4 + m5 + m6 + m7
When a Boolean function is in its sum‐of‐minterms form, it is sometimes convenient to express the function in the
following brief notation:
F(A, B, C) = (1, 4, 5, 6, 7)
The summation symbol stands for the ORing of terms; the numbers following it are the indices of the minterms of the
function. The letters in parentheses following F form a list of the variables in the order taken when the minterm is
converted to an AND term. An alternative procedure for deriving the minterms of a Boolean function is to obtain
the truth table of the function directly from the algebraic expression and then read the
minterms from the truth table. Consider the Boolean function given in ;
F = A + B′C
The truth table shown in Table can be derived directly from the algebraic expression by listing the eight binary
combinations under variables A, B, and C.
`
4
07/01/2024
F′(A, B, C) = (0, 2, 3) = m0 + m2 + m3
5
07/01/2024
Standard Forms
The two canonical forms of Boolean algebra are basic forms that one obtains from reading a given function
from the truth table. Another way to express Boolean functions is in standard form. In this configuration,
the terms that form the function may contain one, two, or any number of literals. There
are two types of standard forms: the sum of products and products of sums.
The sum of products is a Boolean expression containing AND terms, called product
terms, with one or more literals each. The sum denotes the ORing of these terms. An
example of a function expressed as a sum of products is
F1 = y′ + xy + x′yz′
A product of sums is a Boolean expression containing OR terms, called sum terms.
Each term may have any number of literals. The product denotes the ANDing of these
terms. An example of a function expressed as a product of sums is
F2 = x(y′ + z)(x′ + y + z′)