13-Quine McCluskey Method
13-Quine McCluskey Method
B.M.K.Reddy
Advantages and disadvantages of
the K-Map Method
The advantages of the K-Map method are as follows:
It is an excellent method for simplifying expression up to four
variables.
3. Compare each binary number with every term in the adjacent next higher category and
if they differ only by one position, put a check mark and copy the term in the next
column with ‘▁’ in the position that they differed.
4. Apply the same process described in step3 for the resultant column and continue
these cycles until a single pass through cycle yields no further elimination of
literals.
6. Select the minimum number of Prime-Implicants which must cover all the
minterms
Quine-McCluskey Algorithm
Example
Simplify the following Boolean function using Quine-
McCluskey method .
f(A,B,C,D) = ∑m(0, 2, 3, 6, 7, 8, 10, 12, 13)
Quine-McCluskey Algorithm
Example f(A,B,C,D) = ∑m(0, 2, 3, 6, 7, 8, 10, 12, 13)
m0 0000
m2 0010
m3 0011
m6 0110
m7 0111
m8 1000
m10 1010
m12 1100
m13 1 1 0 1
Column1 Column2 Column3 Column4
Quine-McCluskey Algorithm
Example f(A,B,C,D) = ∑m(0, 2, 3, 6, 7, 8, 10, 12, 13)
m0 0000 m0 0000
m2 0010 m2 0010
m3 0011 m8 1000
m6 0110 m3 0011
m7 0111 m6 0110
m8 1000 m10 1010
m10 1 0 1 0 m12 1100
m12 1 1 0 0 m7 0111
m13 1 1 0 1 m13 1101
Column1 Column2 Column3 Column4
Quine-McCluskey Algorithm
Example f(A,B,C,D) = ∑m(0, 2, 3, 6, 7, 8, 10, 12, 13)
8, 12 1▁00 AC’D’
12, 13 110▁ ABC’
0, 2, 8, 10 ▁0▁0 B’D’
2, 3, 6, 7 0▁1▁ A’C
Quine-McCluskey Algorithm
Example f(A,B,C,D) = ∑m(0, 2, 3, 6, 7, 8, 10, 12, 13)
AC’D’ 8, 12 ⨀ ⨀
ABC’ 12, 13 ⨀ ⨀
B’D’ 0, 2, 8, 10 ⨀ ⨀ ⨀ ⨀
A’C 2, 3, 6, 7 ⨀ ⨀ ⨀ ⨀
AC’D’ 8, 12 ⨀ ⨀
ABC’ 12, 13 ⨀ ⨀
B’D’ 0, 2, 8, 10 √ ⨀ ⨀ ⨀ ⨀
A’C 2, 3, 6, 7 ⨀ ⨀ ⨀ ⨀
Col1 is single dot column so, select the prime implicant (B’D’)
corresponding to that dot by putting a check mark in front of it.
Quine-McCluskey Algorithm
Example f(A,B,C,D) = ∑m(0, 2, 3, 6, 7, 8, 10, 12, 13)
AC’D’ 8, 12 ⨀ ⨀
ABC’ 12, 13 ⨀ ⨀
B’D’ 0, 2, 8, 10 √ ⨀ ⨀ ⨀ ⨀
A’C 2, 3, 6, 7 √ ⨀ ⨀ ⨀ ⨀
Col3, 4, 5 are single dot columns so, select the prime implicant (A’C)
corresponding to those dots by putting a check mark in front of it.
Quine-McCluskey Algorithm
Example f(A,B,C,D) = ∑m(0, 2, 3, 6, 7, 8, 10, 12, 13)
AC’D’ 8, 12 ⨀ ⨀
ABC’ 12, 13 ⨀ ⨀
B’D’ 0, 2, 8, 10 √ ⨀ ⨀ ⨀ ⨀
A’C 2, 3, 6, 7 √ ⨀ ⨀ ⨀ ⨀
AC’D’ 8, 12 ⨀ ⨀
ABC’ 12, 13 √ ⨀ ⨀
B’D’ 0, 2, 8, 10 √ ⨀ ⨀ ⨀ ⨀
A’C 2, 3, 6, 7 √ ⨀ ⨀ ⨀ ⨀
Col9 is single dot column so, select the prime implicant (ABC’)
corresponding to that dot by putting a check mark in front of it.
Quine-McCluskey Algorithm
Example f(A,B,C,D) = ∑m(0, 2, 3, 6, 7, 8, 10, 12, 13)
m1 0001
m2 0010
m3 0011
m5 0101
m9 1001
m12 1100
m14 1110
m15 1111
dm4 0100
dm8 1000
dm11 1011
Quine-McCluskey Algorithm
Example f(A,B,C,D) = ∑m(1, 2, 3, 5, 9, 12, 14, 15) + ∑d(4, 8 , 11)
2. Arrange the minterms according to the number of 1s.
Step 1 Step 2 Step 3 Step 4
Binary Binary Binary Binary
Minterms Minterms Minterms Minterms
Representation Representation Representation Representation
m1 0001 m1 0001
m2 0010 m2 0010
m3 0011 m4 0100
m5 0101 m8 1000
m9 1001 m3 0011
m12 1100 m5 0101
m14 1110 m9 1001
m15 1111 m12 1100
dm4 0100 m11 1011
dm8 1000 m14 1110
dm11 1011 m15 1111
Quine-McCluskey Algorithm
Example f(A,B,C,D) = ∑m(1, 2, 3, 5, 9, 12, 14, 15) + ∑d(4, 8 , 11)
5. List all the Prime-Implicants Which are not having check mark)
Minterms Binary Representation Prime-Implicants
1, 5 0▁01 A’C’D
2, 3 001▁ A’B’C
4, 5 010▁ A’BC’
4, 12 ▁100 BC’D’
8, 9 100▁ AB’C’
8, 12 1▁00 AC’D’
12, 14 11▁0 ABD’
11, 15 1▁11 ACD
14, 15 111▁ ABC
1, 3, 9, 11 ▁0▁1 B’D
Quine-McCluskey Algorithm
Example f(A,B,C,D) = ∑m(1, 2, 3, 5, 9, 12, 14, 15) + ∑d(4, 8 , 11)
A’C’D 1, 5 ⨀ ⨀
A’B’C 2, 3 ⨀ ⨀
A’BC’ 4, 5 ⋅ ⋅
BC’D’ 4, 12 ⋅ ⋅
AB’C’ 8, 9 ⋅ ⋅
AC’D’ 8, 12 ⋅ ⋅
ABD’ 12, 14 ⨀ ⨀
ACD 11, 15 ⋅ ⋅
ABC 14, 15 ⨀ ⨀
B’D 1, 3, 9, 11
⋅ ⋅ ⋅ ⋅
Quine-McCluskey Algorithm
Example f(A,B,C,D) = ∑m(1, 2, 3, 5, 9, 12, 14, 15) + ∑d(4, 8 , 11)
In our example only Col2 has single dot. So, select the
prime implicant (A’B’C) corresponding to that dot by
putting a check mark in front of it.
Quine-McCluskey Algorithm
Example f(A,B,C,D) = ∑m(1, 2, 3, 5, 9, 12, 14, 15) + ∑d(4, 8 , 11)
A’C’D 1, 5 ⨀ ⨀
⨀ ⨀
A’B’C 2, 3 √
A’BC’ 4, 5 ⋅ ⋅
BC’D’ 4, 12 ⋅ ⋅
AB’C’ 8, 9 ⋅ ⋅
AC’D’ 8, 12 ⋅ ⋅
ABD’ 12, 14 ⨀ ⨀
ACD 11, 15 ⋅ ⋅
ABC 14, 15 ⨀ ⨀
B’D 1, 3, 9, 11
⋅ ⋅ ⋅ ⋅
Quine-McCluskey Algorithm
Example f(A,B,C,D) = ∑m(1, 2, 3, 5, 9, 12, 14, 15) + ∑d(4, 8 , 11)
In our example Col1 has single dot with don’t care. So,
select the prime implicant (A’C’D) corresponding to that
dot by putting a check mark in front of it.
Quine-McCluskey Algorithm
Example f(A,B,C,D) = ∑m(1, 2, 3, 5, 9, 12, 14, 15) + ∑d(4, 8 , 11)
A’C’D 1, 5 √ ⨀ ⨀
⨀ ⨀
A’B’C 2, 3 √
A’BC’ 4, 5 ⋅ ⋅
BC’D’ 4, 12 ⋅ ⋅
AB’C’ 8, 9 ⋅ ⋅
AC’D’ 8, 12 ⋅ ⋅
ABD’ 12, 14 ⨀ ⨀
ACD 11, 15 ⋅ ⋅
ABC 14, 15 ⨀ ⨀
B’D 1, 3, 9, 11
⋅ ⋅ ⋅ ⋅
Quine-McCluskey Algorithm
Example f(A,B,C,D) = ∑m(1, 2, 3, 5, 9, 12, 14, 15) + ∑d(4, 8 , 11)
In our example Col3 has single dot with don’t care. But its
corresponding prime implicant already selected.
Quine-McCluskey Algorithm
Example f(A,B,C,D) = ∑m(1, 2, 3, 5, 9, 12, 14, 15) + ∑d(4, 8 , 11)
In our example Col9 has single dot with don’t care. So,
select the prime implicant (ABD’) corresponding to that
dot by putting a check mark in front of it.
Quine-McCluskey Algorithm
Example f(A,B,C,D) = ∑m(1, 2, 3, 5, 9, 12, 14, 15) + ∑d(4, 8 , 11)
A’C’D 1, 5 √ ⨀ ⨀
⨀ ⨀
A’B’C 2, 3 √
A’BC’ 4, 5 ⋅ ⋅
BC’D’ 4, 12 ⋅ ⋅
AB’C’ 8, 9 ⋅ ⋅
AC’D’ 8, 12 ⋅ ⋅
ABD’ 12, 14 √ ⨀ ⨀
ACD 11, 15 ⋅ ⋅
ABC 14, 15 ⨀ ⨀
B’D 1, 3, 9, 11
⋅ ⋅ ⋅ ⋅
Quine-McCluskey Algorithm
Example f(A,B,C,D) = ∑m(1, 2, 3, 5, 9, 12, 14, 15) + ∑d(4, 8 , 11)
In our example Col11 has single dot with don’t care. So,
select the prime implicant (ABC) corresponding to that
dot by putting a check mark in front of it.
Quine-McCluskey Algorithm
Example f(A,B,C,D) = ∑m(1, 2, 3, 5, 9, 12, 14, 15) + ∑d(4, 8 , 11)
A’C’D 1, 5 √ ⨀ ⨀
⨀ ⨀
A’B’C 2, 3 √
A’BC’ 4, 5 ⋅ ⋅
BC’D’ 4, 12 ⋅ ⋅
AB’C’ 8, 9 ⋅ ⋅
AC’D’ 8, 12 ⋅ ⋅
ABD’ 12, 14 √ ⨀ ⨀
ACD 11, 15 ⋅ ⋅
ABC 14, 15 √ ⨀ ⨀
B’D 1, 3, 9, 11
⋅ ⋅ ⋅ ⋅
Quine-McCluskey Algorithm
Example f(A,B,C,D) = ∑m(1, 2, 3, 5, 9, 12, 14, 15) + ∑d(4, 8 , 11)
A’C’D 1, 5 √ ⨀ ⨀
⨀ ⨀
A’B’C 2, 3 √
A’BC’ 4, 5 ⋅ ⋅
BC’D’ 4, 12 ⋅ ⋅
AB’C’ 8, 9 ⋅ ⋅
AC’D’ 8, 12 ⋅ ⋅
ABD’ 12, 14 √ ⨀ ⨀
ACD 11, 15 ⋅ ⋅
ABC 14, 15 √ ⨀ ⨀
B’D 1, 3, 9, 11
√ ⋅ ⋅ ⋅ ⋅
Quine-McCluskey Algorithm
Example f(A,B,C,D) = ∑m(1, 2, 3, 5, 9, 12, 14, 15) + ∑d(4, 8 , 11)
F(A,B,C,D,E) = ∑m(0, 2, 5, 8, 14, 16, 18, 25, 26, 30) + ∑d(10, 12, 24)
F(x1,x2,x3,x4 ,x5) = ∑m(0, 2, 4, 5, 6, 7, 8, 10, 14, 17, 18, 21, 29, 31)+∑d(11, 20, 22)