Boolean Algebra
Boolean Algebra
Truth Tables Truth Table is a table which represents all the possible values of logical
variables / statements along with all the possible results of a given combinations of values.
o If result of any logical statement or expression is always TRUE or 1 it is called as Tautology.
o If result of any logical statement or expression is always FALSE or 0 it is called as Fallacy.
1. NOT - for NOT operator symbol used in Boolean algebra is a bar ( ˉ ) or single quote (’) symbol.
The NOT operator is also called as complement of a variable. The possible combinations with
their result is shown in Truth table given below:-
Logical Gate used for NOT :
X X
X.Y Y X.Y.Z
Y Z
2 variables 3 variables
X X
X+Y Y X+Y+Z
Y Z
2 variables 3 variables
4. NAND --- symbol used is ● (dot with bar on all the inputted variables)
NAND Logical Gate used for NAND :
A B
0 0 1 A A
0 1 1 A.B B A.B.C
1 0 1 B C
1 1 0
2 variables 3 variables
Truth Table showing all possible combinations of function containing three variables or four
variables 8 4 2 1
A B C D
4 2 1
0 0 0 0 0
B C D
1 0 0 0 1
0 0 0 0
2 0 0 1 0
1 0 0 1
3 0 0 1 1
2 0 1 0
4 0 1 0 0
3 0 1 1
5 0 1 0 1
4 1 0 0
6 0 1 1 0
5 1 0 1
7 0 1 1 1
6 1 1 0
8 1 0 0 0
7 1 1 1
9 1 0 0 1
3 Variable Truth Table 10 1 0 1 0
11 1 0 1 1
12 1 1 0 0
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1
b) X.Y.(Z+Y.Z) + Z
X Y Z XY YZ Z+YZ XY(Z+YZ) XY(Z+YZ)+Z
0 0 0 0 0 0 0 0
0 0 1 0 0 1 0 1
0 1 0 0 0 0 0 0
0 1 1 0 1 1 0 1
1 0 0 0 0 0 0 0
1 0 1 0 0 1 0 1
1 1 0 1 0 0 0 0
1 1 1 1 1 1 1 1
c)
NOT AND OR
0 1 3 2
4 5 7 6
12 13 15 14
8 9 11 10
vii) To form a big group we can Map-Roll (consider the map as if its left edge
touching the right and top edge touching the bottom edge) the 1’s in K-Map
as shown in fig below Map rolling can never be done on diagonally opposite
corners :-
3. Apply Reduction Rule:- Remove variables which changes the state from
complemented to un-complemented or vice-versa.
The larger a group is, the more redundant inputs there are:
i) 1 cell no redundant inputs.
ii) A group of 2 cells (Pair) 1 redundant input.
iii) A group of 4 cells (Quad) 2 redundant inputs.
iv) A group of 8 cells (Octet) 3 redundant inputs.
Write remaining expressions (products of groups) after applying the reduction rules.
All 1’s in the output must be included in a group even if the group is only one cell.
4. Finally, the simplified expression is formed by ORing (placing plus (+)) each of the
(AND) groups.
F(A,B,C,D) = ∑ ( 0 , 1 , 2 , 4 , 5 , 6 , 8 , 12 , 15 )
4 var K-Map
and if var’s are not specified
Step-1 Means sum of >7 means 4-var K-Map
here then check expression
product K-Map <4 means 2-var K-Map
on right hand side for number
i.e. SOP K-Map >=4 and <=7 means 3-var K-Map
of variables to design the K-Map
CD
AB C’D’ C’D CD CD’ Group 3
1 1 1
Step-2
And
A’B’
Step 3 0 1 3 2
A’B
1 1 4 5 7
1 6
1 1
Group 4
AB
12 13 15 14
AB’ 1 8 9 11 10
Group 2
A’ C’ C’ D’ A’ D’
Normally if cells of a complete row or column are grouped then the respective row or column
heading is written as answer. As in case of group 2 – cells of all rows that is first column are
grouped together therefore the answer is the column heading C’ D’
If there is any single cells which cannot be a part of any group then the cell itself is written
as a group ( as in case of group 4 specified above ) , which needs no simplification that is
the cell name is written in final answer.
Step 5 : Write simplified expression by ORing (placing plus (+)) each of the (AND) groups
A’C’ + C’D’ + A’D’ + ABCD
Example 3 :-
Example 3 :-
Groups can be overlapped as shown here.
Overlapping means same 1 can be encircled more than once.
Redundant group is a group whose all 1’s are overlapped by other groups.
Example 4:-
Grouping and
Minimizing
Plotting
Example 6
Second way
First way of of grouping
grouping
Example 7:-
Example 8 :-
0 0 0
Step-2
And
A+B
Step 3 0 1 3 2
A+B’
0 0 4 5 7
0 6
0 0
Group 4
A’+B’
12 13 15 14
A’+B 0 8 9 11 10
Group 2
Step 4 : Simplified forms of groups
Group1 Group 2 Group 3 Group 4
A+B+C+D A+B+C+D A+B+C+D A+B+C+D
A+B+C+D’ A+B’+C+D A+B’+C+D
A+B’+C+D A’+B’+C+D A+B+C’+D
A+B’+C+D’ A’+B+C+D A+B’+C’+D
Solution :- Transfer the seven maxterms to the map below as 0s. Be sure to complement
the input variables in finding the proper cell location
We map the 0s as they appear left to right top to bottom on the map above. We locate the
last three maxterms with leader lines..
Showing K-Map
folding
o Inverse or Complementarity Law -- a term ANDed with its complement equals 0, and a term
ORed with its complement equals 1
1) A + A’ = 1
2) A . A’ = 0
o Commutative Law -- the order in which terms are written does not affect their value
1) A.B=B.A
2) A+B=B+A
o Associative Law
1) (A + B) + C = A + (B + C)
2) (A.B).C = A.(B.C)
o Distributive Law
1) A.(B+C) = A.B + A.C
2) A + B.C = (A+B).(A+C)
The algebraic proof of first Distributive law –
A + B.C = (A+B) . (A+C)
RHS (A+B).(A+C) = AA + AC + BA + BC
= A + AC + BA + BC (AA = A , Indempotent law)
= A(1+B) + CA + BC
= A.1 + CA + BC (1+B=1 , property of 0 and 1)
= A + CA + BC (A.1=A , property of 0 and 1)
= A(1+C) + BC
= A.1 + BC (1+C=1 , property of 0 and 1)
= A + BC (A.1=A , property of 0 and 1)
= LHS , Hence Proved
Similarly prove --- A.(B+C) = A.B + A.C of distributive law
o Absorption Law
1) A + A.B = A
2) A.(A+B) = A
The algebraic proof of Distributive law –
A.(A+B) = A
LHS A.(A+B)
= A.A + A.B
= A + A.B (A.A = A , Indempotent law)
= A(1+B) (1+B = 1 , property of 0 and 1)
= A.1
=A (A.1 = A , property of 0 and 1)
= RHS , Hence Proved
Similarly prove --- A + A.B = A of Absorption law
De Morgan's Law
First Law:- The complement of ORed two variables (A+B)’ is equal to the ANDing of the complements
of these variables (A)’. (B)’ that is ----(A+B)’ = (A)’. (B)’
Proof:We have to prove complement of A + B = A'B'. By definition of complement, it is sufficient to show
1) (A + B) + A’B’ = 1 (as X + X’ = 1) here X is (A+B), and
2) (A + B).(A’B’) = 0 (as X . X’ = 0) (A+B)’ = A’.B’
Let us prove the First part :-
(A + B) + A’B’ = 1
LHS = (A + B) + A’B’
= ((A + B)+ A’).((A + B)+ B’) (Distributive Law)
= (A + A’ + B).(A + B + B’)
= (1 + B).(A + 1) (as A + A’ = 1)
= 1.1 (as 1 + A = 1)
= 1
Hence Proved (A + B) + A’B’ = 1
Now Let us prove the Second part :-
(A + B).(A’B’) = 0
LHS = A’B’.(A + B)
= (A’.B’.A)+(A’.B’.B) (Distributive Law)
= (A’.A.B’)+(A’.B’.B)
= (0.B’)+(A’.0) (as A.A’ = 0)
= 0.0 = 0
Hence Proved (A + B).(A’B’) = 0
Second Law:- The complement of the ANDed two variables (A.B)’ is equal to the ORing of the
complements of these variables (A)’+(B)’ that is ---- (A.B)’ = (A)’ + (B)’
Proof:We have to prove the complement of A+B=A’B’. By definition of complement, it is sufficient to show
1) A.B + (A'+ B') = 1 (as X + X’ = 1) here X is (A.B), and
2) AB.(A’ + B’) = 0 (as X . X’ = 0) (A.B)’ = A’+B’
Let us prove the First part :-
A.B + (A'+ B') = 1
LHS = (A'+ B') + AB (Associative Law)
= (A’ + B’ + A).(A’ + B’ + B) (Distributive Law, X+YZ=(X+Y).(X+Z))
= (A’ + A + B’).(A’ + B’ + B)
= (1 + B’).(A’ + 1) (as A + A’ = 1)
= 1.1 (as 1 + A = 1)
= 1
Hence Proved (A + B) + A'B' = 1
Now Let us prove the Second part :-
AB.(A’ + B’) = 0
LHS = AB.(A’ + B’)
= (A.B.A’)+(A.B.B’) (Distributive Law, X.(Y+Z)=(X.Y)+(X.Z))
= (A.A’.B)+(A.B.B’)
= 0.B + A.0 (as A.A’= 0)
= 0+0 = 0 Hence Proved AB.(A’ + B’) = 0
Notes By Neelima Kamboj 19
Principle of duality
1 Interchanging each OR ( + ) sign to an AND ( . ) sign and vice versa
2. Interchanging each 0 by 1 and 1 by 0
3. Not changing the form of the variables
Example:
i) The dual of the statement (X.1)(0+X’) = 0 is (X+0)+(1.X’) = 1
ii) The dual of the statement (X+Y)(Y+Z) = X.Z + Y is X.Y + Y.Z = (X+Z).Y
Solve the following expressions:-
Expression 1 :-
Expression 3 :-
as , therefore
= , and
using De-Morgan’s Law =
7 Involution Law
8 A + A’ = 1
Complementarity Law
9 A . A’ = 0
10 A + B = B+ A
Commutative Law
11 A . B = B . A
12 (A + B) + C = A + (B + C)
Associative Law
13 (A.B).C = A.(B.C)
14 A.(B+C) = A.B + A.C
Distributive Law
15 A + B.C = (A+B).(A+C)
16 A + A.B = A
Absorption Law
17 A.(A+B) = A
18 (A+B)’ = (A)’. (B)’
De-Morgan’s Law
19 (A.B)’ = (A)’ + (B)’
20 A + A’.B = A+B Third Distributive Law
Find SOP and POS of Function F1 and F2 from the following Truth Table
A’BC = 1
AB’C = 1
ABC’ = 1
ABC = 1
A+B+C = 0
A+B+C’ = 0
A+B’+C = 0
A’+B+C = 0
(DeMorgan's Theorem )
(DeMorgan's Theorem )
(Distributive Law)
( X.X’=0 and 0+X=X )