6 Karrnaugh Map
6 Karrnaugh Map
6 Karrnaugh Map
The Karnaugh map is similar to truth table because it presents all the
possible values of input variables and the resulting output for each value.
The 2 variable K-Map: It is an array of 4 cells. The variables are ‘a’ and ‘b’
a\b b’ b a\b 0 1
a’ 00 01 0 00 01
a 10 11 1 10 11
ab\c 0 1 a\bc 00 01 10 11
00 a’b’c’ a’b’c 0 000 001 010 011
10 ab’c’ ab’c
11 abc’ abc
The 4 variable K-Map: It is an array of 8 cells. The variables are ‘a’ , ‘b’,
‘c’ , ‘d’ are used. This can be expressed as follows:
ab\cd 00 01 10 11
00 a’b’c’d’ a’b’c’d a’b’cd’ a’b’cd
01 a’bc’d’ a’bc’d a’bcd’ a’bcd
10 ab’c’d’ ab’c’d ab’cd’ ab’cd
11 abc’d’ abc’d abcd’ abcd
ab\cd 00 01 10 11
00 0000 0001 0010 0011
01 0100 0101 0110 0111
10 1000 1001 1010 1011
11 1100 1101 1110 1111
K-Map minimization of Boolean expressions:
2. Grouping the 1’s: Adjacent cells that contain 1 are grouped. Groups are
done so as to maximize the size of the groups and to minimize the number
of groups. A group must have either 1,2,4,8 or 16 cells, each being some
power of 2.
Overlapping, Rolling and Redundant group may occur.
x\yz 00 01 10 11
0 0 0 1 0
1 1 0 1 1
The first term is x’yz’ = 010. The second term is xy’z’ = 100
The third term is xyz’ = 110.The fourth term is xyz = 111
2. Grouping the 0’s: Adjacent cells that contain 0 are grouped. Groups are
done so as to maximize the size of the groups and to minimize the number
of groups. A group must have either 1,2,4,8 or 16 cells, each being some
power of 2.
1 0 0 1 1
The first term is x+y’+z = 010. The second term is x+y’+z’ = 011
The third term is x’+y+z = 100. The fourth term is x’+y+z’ = 101
While making groups it may happen that we can’t make groups efficiently,
so in such cases we assign a 0 or 1 to one more adjacent cell by which we
can make a big group, so that the expression is more simplified.
For Example: using K-Map simplify the expression:
a’bc’d + a’bcd’ + a’bcd
f(a,b,c,d) = m(3,7,11,12,13,14,15)
abcd
3 0011 a`b`cd
7 0111 a`bcd
11 1011 ab`cd
12 1100 abc`d`
13 1101 abc`d
14 1110 abcd`
15 1111 abcd
EXAMPLE
f(a,b,c,d) = m(3,7,11,12,13,14,15)
=a`b`cd + a`bcd + ab`cd + abc`d`+ abc`d + abcd` + abcd
=cd(a`b` + a`b + ab`) + ab(c`d` + c`d + cd` + cd )
=cd(a`[b` + b] + ab`) + ab(c`[d` + d] + c[d` + d])
=cd(a`[1] + ab`) + ab(c`[1] + c[1])
=ab+ab`cd + a`cd
=ab+cd(ab` + a`)
=ab+ cd(a + a`)(a`+b`)
= ab + a`cd + b`cd
= ab +cd(a` + b`)