Chapter - 3
Chapter - 3
Ch ter
3 and
Reduction Technique
3.1 Introduction
A+B =B+A
A.B = B.A
(2) Associative property
Boolean addition and multiplication are both associative.
A + (B + C) = (A + B) + C
(A.B).C = (A.C).B
(3) Distributive property
The Boolean addition is distributive over the Boolean multiplication.
A + B.C = (A + B).(A + C)
A + A = A
|{z} A.A = A
duality
|{z} 0.1 = 0
1 + 0 = 1
duality
(A + B)(C + D)
|{z} (A.B) + (C.D)
duality
Boolean Algebra and Reduction Technique 3.5
A.1 = A
A+1=1
A+A=1
A.A = 0
A+0=A
A.0 = 0
A.A = A
A+A=A
Note:
1. In Boolean algebra 1 is called multiplicative identity and 0 is called ad-
ditive identity.
2. With n-variable maximum possible Boolean expressions is 2 2 .
n
I Solution
x y y z z z = x (y y) z (z z)
= x y(z z) {Idempotent law A A = A}
= xyz {Idempotent law A A = A}
I Solution
x x y y + xy z z = (x x)(y y) + x y(z z)
=x0+xyz {Idempotent lawA A = A}
{Negation law A A = 0}
= 0 + xy z {Null law A 0 = 0}
= xy z {Null law A + 0 = A}
F = x + yz
I Solution
Method - 1(Using De-Morgans law):
F = x + yz
F = (x + yz) (Taking complement of both sides)
= x yz (Applying De-Morgans law)
= x (y + z)
F = x(y + z)
Boolean Algebra and Reduction Technique 3.7
F = x + yz
Taking dual of F ,
Dual (F ) = x (y + z)
F = x(y + z) (complementing each variable)
I Solution
Method - 1(Using De-Morgans law):
F = xy(z + w) + xyz
F = xy(z + w) + xyz
= xyz + xyw + xyz (distribution law)
= xyz xyw xyz (De-Morgans law)
= 0 xyw (A A = 0)
=0 (0 A = 0)
F = xy(z + w) + xyz
Dual (F ) = {(x + y) + (zw)} (xyz)
F = {(x + y) + (z w)} (xyz)
(complementing each variable both side)
= (x + y + z w)(xyz)
= x xyz + y xyz + z w xyz
=0+0+0 (A A = 0)
=0
I Solution
LHS = A + BC = A 1 + BC
= A(1 + B) + BC ( A 1 = A)
= A 1 + AB + BC ( 1 + B = 1)
= A(1 + C) + AB + BC ( A(B + C) = AB + BC)
= A 1 + AC + AB + BC ( 1 + C = 1)
= A A + AC + AB + BC (A A = A)
= A(A + C) + B(A + C)
= (A + B) (A + C) = RHS (Hence proved)
RHS = (A + B)(A + C)
=AA+AC +BA+BC
= A + AC + AB + BC (A A = A)
= A(1 + C) + AB + BC
= A + AB + BC ( 1 + C = 1)
= A(1 + B) + BC
= A + BC = LHS ( 1 + B = 1) (Hence proved)
LHS = A + AB
= A(1 + B)
= A = RHS ( 1 + B = 1) (Hence proved)
Boolean Algebra and Reduction Technique 3.9
(ii) A (A + B) = A
LHS = A (A + B)
=AA+AB
= A + AB ( A A = A)
= A(1 + B)
= A = RHS ( 1 + B = 1) (Hence proved)
(iii) A + AB = A + B
LHS = A + AB
= (A + A) (A + B) (Distributive property)
= 1 (A + B) ( A + A = 1)
= A + B = RHS (Hence proved)
(iv) A (A + B) = AB
I Solution
(i) AB + AC + BC = AB + AC
LHS = AB + AC + BC
= AB + AC + BC(A + A) ( (BC) 1 = BC, A + A = 1)
= AB + AC + ABC + ABC (distributive)
= AB + AC(1 + B) + ABC
= AB(1 + C) + AC
= AB + AC = RHS( 1 + C = 1) (Hence proved)
3.10 Digital Electronics, an easy approach to learn
(ii) (A + B) (A + C) (B + C) = (A + B) (A + C)
LHS = (A + B) (A + C) (B + C)
= (A A + AC + AB + BC) (B + C) (distributive)
= ABC + ACC + ABB + ABC + BBC + BCC (distributive)
= ABC + AC + AB + ABC + BC ( A A = A)
= ABC + AC + AB(1 + C) + BC
= AC(B + 1) + AB + BC ( 1 + C = 1)
= AC + AB + BC ( 1 + B = 1)
= AC + AB + BC + A A ( A A = 0)
= C(A + B) + A(A + B)
= (A + B)(A + C)
= RHS (Hence proved)
X (Proof for consensus law)
I Solution
(i) LHS = AB + AC
= AB + AC + BC (Consensus law)
= AB + AA + AC + BC ( A A = 0)
= A(A + B) + C(A + B)
= (A + C) (A + B) = RHS (Hence proved)
(ii) LHS = (A + B) (A + C)
I Solution
AB + A(B + C) + B(B + C)
= AB + AB + AC + BB + BC
= AB + AC + B + BC ( AB + AB = AB; B B = B)
= B(1 + A + C) + AC
= B + AC ( 1 + x = 1)
I Solution
ABC + AB C + A B C + ABC + ABC
I Solution
AB + AC + A B C
= A(1 + C) + A B + B C ( 1 + A = 1)
= A(1 + B) + B C
=A+B C
I Solution
AB + AC + ABC(AB + C)
= AB + AC + ABC AB + ABC C
= AB + A + C + 0 + ABC ( B B = 0; C C = C;)
(De-Morgans law AC = A + C)
= AB + A + C + ABC
= AB + A + C + A B (C + ABC = C + AB; A + A B = A + B)
= A + AB + C + AB
=A+B+C +AB (A + A B = A + B)
=A+AB+B+C
=A+B+B+C
=A+C +1 ( B + B = 1)
=1 ( 1 + x = 1)
I Solution
LHS = B + AB + C(A + D)
= B + AB + C(A + D) + 0 ( 0 + A = A)
= AB + C(A + D) + AB + CD + B
= AB + A C + C D + AB + CD + B
= B(A + A) + D(C + C) + AC + B
= B + B + D + AC ( A + A = 1)
= 1 + D + AC ( B + B = 1)
=1 (1 + X = 1)
Boolean Algebra and Reduction Technique 3.13
RHS = AB + BD + BD + A CD
= AB + BD + BD + A CD + 0
= AB + BD + B + D + A CD + AB + CD
= B(A + A) + D(1 + C) + BD + B + A CD
= B + D + BD + B + A CD ( A + A = 1; 1 + C = 1)
= B(1 + D) + D + B + A CD
= B + D + B + A CD (1 + D = 1)
= 1 + D + A CD
=1 (1 + X = 1)
L.H.S = R.H.S. (Hence Proved)
I Solution
Y = A + AB + A BC + A B CD
= A + B + A BC + A B CD ( A + AB = A + B)
= A + A BC + B + A B CD
= A + BC + B + A B CD
= A + C + B + A B CD
=A+C +B+AC D
= A + A CD + C + B
= A + CD + C + B
= A + B + C + CD
=A+B+C +D
(ii) AB + (B + C)D
I Solution
(i) A + B(CD + DE) = A + BCD + BDE
(ii) AB + (B + C)D
Example 3.16 Convert the SOP form, f (ABC) = (AB + A BC) into SSOP
form.
I Solution
AB + A BC = AB(C + C) + A BC
(In AB term, C is missing. So we multiply 1 = C + C to that term).
= ABC + ABC + A BC
I Solution
f = (A + B)(B + C)
The domain of this POS expression is A, B, C.
So, in the first sum term we have to introduce C and in the second sum term
we have to introduce A.
A + B + CC = (A + B + C)(A + B + C)
3.16 Digital Electronics, an easy approach to learn
B + C + A A = (A + B + C)(A + B + C)
Note: While forming the product terms, any input A can be taken as A when
the corresponding value is 1 and, A when its corresponding value is 0,
whereas it is just the reverse case in the formation of the sum terms.
I Solution
f (A, B, C) = (A + B + C)(A + B + C)(A + B + C)
= (A + B + C)(A + B + C)(A + B + C)
Y
= M (0, 2, 3) for POS, A + B + C 0 0 0 0
A+B+C 0 1 0 2
A+B+C 0 1 1 3
Therefore, the SOP form is given by,
X
f (A, B, C) = m(1, 4, 5, 6, 7)
= A BC + AB C + ABC + ABC + ABC
for SOP, 1 0 0 1 A BC
4 1 0 0 AB C
5 1 0 1 ABC
6 1 1 0 ABC
7 1 1 1 ABC
3.18 Digital Electronics, an easy approach to learn
Note:
1. Sum of all the min terms of a given Boolean function is equal to 1.
For example,
X
f (A, B, C) = m(0, 1, 2, 3, 4, 5, 6, 7) = 1
2 Concept: Each max term is the complement of its corresponding min terms and vice
versa.
For example, AB is a min term, but, (AB)0 = (A0 + B 0 ) is a max term.
BC
00 01 11 10
A
0
0 1 3 2
1 4 5 7 6
00 0 1 3 2
01 4 5 7 6
11 12 13 15 14
10 8 9 11 10
Variables
Column
headings
BC
A 00 01 11 10
Row 0 0 1 3 2
headings 1 4 5 7 6
Column headings of the adjacent cells must differ only by one bit. To maintain
this, property gray codes are used.
For example, in general 2bit binary coding, the adjacent values will be as 00,
01, 10, 11. Here in between the adjacent values 01 and 10, 2bit positions are
3.20 Digital Electronics, an easy approach to learn
changed which is overcome by the use of gray code wherein adjacent values are
00, 01, 11, 10.
Column
headings
CD 00 01 11 10
AB
00 0 1 3 2
Row 01
4 5 7 6
headings
11 12 13 15 14
10 8 9 11 10
Each cell value is determined by combining the row heading and column heading
of the cell. As for example, the cell value 7 can be determined by combining
its corresponding row value (01) and column value (11); where the combination
gives ( |{z}
01 11 ) = ( |{z}
|{z} 7 )10
Row value column value cell value
K-map
By looking at the K-map, the positions of 1s gives the SOP expression and the
positions of 0s gives POS expression.
B (B B)
A 0 1
A 0 1 0 0 1
A 1 1 2 0 3
SOP expression = A B + AB
POS expression = (A + B) (A + B) [Since in POS, complements of the
input variables are taken]
BC BC BC BC BC
A 11 10
00 01
A 0 1 1
0 1 3 2
A 1 1 1 1
4 5 7 6
Redundant loop
3.22 Digital Electronics, an easy approach to learn
Rules
1. To write the reduced and most simplified SOP expression, we need to loop
all the 1s.
2. To write the reduced and most simplified POS expression, we need to loop
all the 0s.
3. A loop must contain either 1, 2, 4, 8 or 16....... which are all powers of 2.
In the case of 2-variable K-map, 22 = 4 cells is the maximum loop.
4. Each cell in a loop must be adjacent to one or more cells in that same loop,
but all cells in the loop do not have to be adjacent to each other.
5. Always include the largest possible number of 1s in a loop.
6. Each 1 on the K-map, must be included in at least one loop.
Now, keeping in mind the above rules, the grouping shown above is self-explanatory.
The required SOP expression is,
BC + BC + AB + AC Redundant
Reduced SOP, = BC + BC + AB
The min term or product term is found by considering a loop formed by the
group of 1s and is represented by the input variables which remain constant across
the row and the column.
For example,
BC BC BC BC BC
A 00 01 11 10
A 0 1
0 1 3 2
A 1 4 1 5 7 6
BC is constant for the loop 1 across the column. But the row values of the
loop is different. So, the min term for the loop is BC.
P
Example 3.19 Simplify the Boolean function f (A, B, C) = m(2, 3, 4, 5)
using K-map.
Boolean Algebra and Reduction Technique 3.23
I Solution
The K-map can be drawn as
BC L1
00 01 11 10
A
0 1 1
0 1 3 2
1 1 4 1 5 7 6
L2
P
Example 3.20 Simplify the Boolean expression f (A, B, C) = m(3, 4, 6, 7)
using K-map.
I Solution
The K-map can be drawn as:
BC L1
A 00 01 11 10
0 1
0 1 3 2
1 1 4 5 1 7 1 6
L2
Note: The 4th and the 6th cells are adjacent cells. So, combining them as a loop
can be done.
L1 BC
L2 AC [The loops L1 and L2 gives the min terms]
So, the reduced expression is
f (A, B, C) = BC + AC
P
Example 3.21 Simplify the Boolean expression f (A, B, C) = m(0, 2, 4, 5, 6)
using K-map.
3.24 Digital Electronics, an easy approach to learn
I Solution
The K-map can be drawn as
BC
A 00 01 11 10
0 1 0 1 3 1 2
1 1 4 1 5 7 1 6
L1
L2
As we know from the rules, while forming a loop, the goal is to maximise the
size of the loop and minimise the number of loops, so we always need to include
the largest possible number of 1s in a loop.
L2 has to be quad (4 cells) and not a pair (2 cells)
L1 AB
L2 C [The loops L1 and L2 gives the min terms]
So, the reduced expression is
f (A, B, C) = AB + C
I Solution
F (A, B, C) = A BC + ABC + ABC + ABC
001 010 110 111
(1) (2) (6) (7)
The K-map can be drawn as
BC L3 L1
A 00 01 11 10
0
0 1 1 3 1 2
1 4 5 1 7 1 6
L2
Boolean Algebra and Reduction Technique 3.25
L1 BC
L2 AB
L3 A BC [The loops L1, L2 and L3 gives the min terms]
So, the reduced expression is
f (A, B, C) = BC + AB + A B C
I Solution
The expression is obviously not in standard form because each product term does
not have 3 variables.
The first term (A) misses 2 variables and the second term (AB) misses 1
variable and the third term is standard.
So, in order to map the above SOP expression we need to convert it into its
corresponding canonical (standard) form:
A + AB + ABC
L2
L1
L1 C
L2 B
3.26 Digital Electronics, an easy approach to learn
f (A, B, C) = A + B + C
I Solution
The K-map for the above function is shown below:
L1 BCD
L2 AB
L3 AD
L4 AC [The loops L1, L2 and L3 gives the min terms]
So, the reduced expression is
f (A, B, C) = BCD + AB + AD + AC
I Solution
ABCD + AB C D + ABC + AB
First we need to convert the SOP form into canonical SOP form, that is
Boolean Algebra and Reduction Technique 3.27
CD 00 01 11 10
AB
00 0 1 3 2
01
4 5 7 6
11 1 12 1 13 1 15 1 14
10 1 8 9 1 11 1 10
Loop1 AC
Loop2 AD
Loop3 AB [The loops L1, L2 and L3 gives the min terms]
So, the reduced expression is
F (A, B, C, D) = AC + AD + AB
I Solution
F (A, B, C, D) = m1 + m3 + m5 + m7 + m8 + m9 + m12 + m13
X
= m(1, 3, 5, 7, 8, 9, 12, 13)
L1
CD
00 01 11 10
AB
00 1 1
0 1 3 2
01 1
4 1 5 7 6
11 1 12
1 13 15 14
10 1 1
8 9 11 10
L3 L2
3.28 Digital Electronics, an easy approach to learn
BC L1 L2
00 01 11 10
A
0 0 0
0 1 3 2
1 0 4 5 6
7
I Solution
The K-map can be drawn as
BC L1
00 01 11 10
A
0 0 0 0 1 3 2
1 4 1 5 0 7 0 6
L2
L1 A + B
L2 A + B [The loops L1 and L2 gives the max terms]
So, the reduced POS expression is
f (A, B, C) = (A + B) + (A + B)
I Solution
P
F (A, B, C, D) = m(1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15) is in SOP form
and can be converted into POS form for easier simplification.
Q
So, F (A, B, C, D) = M (0, 4)
The K-map can be drawn as
Loop 1
CD 11
00 01 10
AB
0
00 0 1 3 2
01 0 4 5 7 6
11 12 13 15 14
10 8 9 11 10
Loop1 (A + C + D)
So, the reduced Boolean expression is
f (A, B, C, D) = (A + C + D)
3.30 Digital Electronics, an easy approach to learn
For these dont care terms either 1 or a 0 may be assigned to the output. It
really doesnt matter since they will never occur. Whenever a dont care condition
exists, we treat it either as a 1 or 0 in the K-map so as to maximise the size of
the loop. Hence, a most reduced expression is obtained.
If we draw a K-map for the above truth table with and without dont care
condition, we can visualise the difference easily.
CD CD
00 01 11 10 00 01 11 10
AB AB
00 0 1 3 2 00 0 1 3 2
01 1 01 1
4 5 7 6 4 5 7 6
11 X X X X 11
12 13 15 14 12 13 15 14
10 1 1 X X 10 1 1
8 9 11 10 8 9 11 10
I Solution
The K-map can be drawn as
CD
00 01 11 10
AB
00 1 1 1
0 1 3 2
01
4 5 1 7
1 6
L1
11 X
12 13 15 14
10 X X X L2
8 9 11 10
)
L1 AC
Represents min terms
L2 B D
When looking for a minimal solution -only circle prime implicant. A minimal
solution will never contain non-prime implicants.
Example 3.30 For the given k-map, find the prime implicants, and essential
prime implicants.
Boolean Algebra and Reduction Technique 3.33
I Solution
00 00
0 1 3 2 18 19 17 16
01 01
4 5 7 6 22 23 21 20
11 11
12 13 15 14 30 31 29 28
10 10
8 9 11 10 26 27 25 24
A=0 A=1
I Solution
The K-map for the given function is shown below:
F (A, B, C, D, E) = DE + ACD + A B D
Brain teasers
1. The minimum Boolean expression for the circuit is
B
A
C
Input Output
A B
A
C
B
Boolean Algebra and Reduction Technique 3.35
I Solution
Considering parallel connection of switches as OR (+) and series connec-
tion of switches as AND (.), the above circuit can be expressed as,
A(B + C) + AB + (A + BC) = AB + AC + AB + AC + BC
= B(A + A) + A(C + C) + BC
( A + A = 1)
= B + A + BC
= A + B + C ( B + BC = B + C)
I Solution
F = AB + (A + B)C
= AB + (AB)C ( A + B = AB)
= AB + C ( A + AB = A + B)
I Solution
Total combination = 2n (for n variable)
We have to combine 16 cells at a time. So, the combination with 4 literals
= 24
Number of literals present in the result is n 4.
4. How many min terms the function f (v, w, x, y, z) = x + y z contains:
(i) Including redundant
(ii) Excluding redundant
I Solution
(i) f = x + y z
= x (w + w) (v + v) (y + y) (z + z) + y z (w + w) (v + v) (x + x)
| {z } | {z }
4 3
(ii) f = x + y z
Here in the expression of f , only w and v are absent.
So, number of redundant = 22 = 4
Total number of min terms excluding redundant = 24 4 = 20
terms
00
1 1 1 X
0 1 3 2
01 0 0 1 1
4 5 7 6
11
0 0 1 1
12 13 15 14
10 1 1 1 X
8 9 11 10
I Solution
CD
AB 00 01 11 10
00
1 1 1 X
0 1 3 2
01 0 0 1 1
4 5 7 6
11 0 0 1 1
12 13 15 14
10 1 1 1 X
8 9 11 10
As less number of zeros are present, we can form POS form easily which
gives: F = A + D
Boolean Algebra and Reduction Technique 3.37
6. Find the Boolean function in SOP form whose K-map is given below as:
C
B 0 1
0 1 0 1 1
1 A 2 A 3
I Solution
If A = 0;
The K-map is modified to,
C
B 0 1
0 1 0 1 1
1 0 2 0 3
So, F = B
If A = 1;
The K-map is modified to,
C
B 0 1
0 1 0 1 1
1 1 2 1 3
So, F = 1 = A
Combining both F = A + B
Exercises
3.1 Using Boolean algebra, simplify the following expression:
a) A BC + A + B + C + A B CD
b) (B + BC)(B + BC)(D + B)
a) AB + BB + C + B
b) (AB + AC)(BC + BC)(ABC)
3.38 Digital Electronics, an easy approach to learn
3.3 Find the standard SOP and POS form from the given truth table:
a) Input Output
A B Y
0 0 1
0 1 0
1 0 0
1 1 1
b)
Input Output
A B C Y
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 1
3.7 Use the K-map to reduce each expression to a minimum SOP form:
a) A B C + A BC + A BC + ABC
b) AB CD + ACD + BC D + A BC D
3.8 Use the K-map method to simplify the following function:
P
F (A, B, C, D) = m(1, 3, 4, 5, 6, 7, 9, 12, 13)
Boolean Algebra and Reduction Technique 3.39
3.1 a) A BC + A B D b) B
3.2 a) 1 b) 0
3.8 f = AD + AB + CD + BC