K Map
K Map
Karnaugh Map-
The Karnaugh Map also called as K Map is a graphical representation that provides a
systematic method for simplifying the boolean expressions.
Here, A and B are the two variables of the given boolean function.
|Page٧
٢
Three Variable K Map-
Three variable K Map is drawn for a boolean expression consisting of three variables.
The number of cells present in three variable K Map = 23 = 8 cells.
So, for a boolean function consisting of three variables, we draw a 2 x 4 K Map.
Here, A, B and C are the three variables of the given boolean function.
Four variable K Map is drawn for a boolean expression consisting of four variables.
The number of cells present in four variable K Map = 24 = 16 cells.
So, for a boolean function consisting of four variables, we draw a 4
x 4 K Map. Four variable K Map may be represented as-
Here, A, B, C and D are the four variables of the given boolean function.
|Page٨
٢
Rule-01:
We can either group 0’s with 0’s or 1’s with 1’s but we can not group 0’s and 1’s together.
X representing don’t care can be grouped with 0’s as well as 1’s.
NOTE
There is no need of separately grouping X’s i.e. they can be ignored if all 0’s and 1’s are already grouped.
Rule-02:
Groups may overlap each other.
Rule-03:
We can only create a group whose number of cells can be represented in the power of 2.
In other words, a group can only contain 2n i.e. 1, 2, 4, 8, 16 and so on number of cells.
Example-
Rule-04:
Groups can be only either horizontal or vertical.
We can not create groups of diagonal or any other shape.
|Page٩
٢
Example-
Rule-05:
Each group should be as large as possible.
Rule-06:
Opposite grouping and corner grouping are allowed.
The example of opposite grouping is shown illustrated in Rule-05.
The example of corner grouping is shown below.
Example-
Rule-07:
There should be as few groups as possible.
Problem-01:
Minimize the following boolean function-
Solution-
Since the given boolean expression has 4 variables, so we draw a 4 x 4 K Map.
We fill the cells of K Map in accordance with the given boolean function.
Then, we form the groups in accordance with the
above rules. Then, we have-
|Page٠
٣
Now,
F(A, B, C, D)
= BD + C’D + B’D’
Problem-02:
Minimize the following boolean function-
Solution-
Since the given boolean expression has 4 variables, so we draw a 4 x 4 K Map.
We fill the cells of K Map in accordance with the given boolean function.
Then, we form the groups in accordance with the
above rules. Then, we have-
Now,
F(A, B, C, D)
= D + B’C’
Problem-03:
Minimize the following boolean function-
Solution-
Since the given boolean expression has 4 variables, so we draw a 4 x 4 K Map.
We fill the cells of K Map in accordance with the given boolean function.
Then, we form the groups in accordance with the
above rules. Then, we have-
Now,
F(A, B, C, D)
= (AB + AB’)(C’D + CD) + (A’B’ + AB’)(C’D + CD) + (A’B’ + AB’)(C’D’ + C’D) + (A’B’ + A’B)
(C’D’ + CD’)
Problem-04:
Minimize the following boolean function-
Solution-
Since the given boolean expression has 3 variables, so we draw a 2 x 4 K Map.
We fill the cells of K Map in accordance with the given boolean function.
Then, we form the groups in accordance with the
above rules. Then, we have-
|Page٢
٣
Now,
F(A, B,
C)
= A'(B’C’ + B’C) + A(BC + BC’)
= A’B’ + AB
NOTE-
It may be noted that there is no need of considering the quad group.
This is because even if we consider that group, we will have to consider the other two duets.
So, there is no use of considering that quad group.
Problem-05:
Minimize the following boolean function-
Solution-
Since the given boolean expression has 3 variables, so we draw a 2 x 4 K Map.
We fill the cells of K Map in accordance with the given boolean function.
Then, we form the groups in accordance with the
above rules. Then, we have-
Now,
F(A, B,
C)
= (A + A’)(B’C’ + B’C) + A(B’C’ + B’C + BC + BC’) + (A + A’)(B’C’ + BC’)
= B’ + A + C’
Problem-
|Page٢
٣
F(A, B, C) = A + B’ + C’
Minimize the following boolean function-
Now,
F(A, B,
C)
= B’ + A
Problem-07:
Minimize the following boolean
function-
Solution
-
Since the given boolean expression has 4 variables, so we draw a 4 x 4 K Map.
We fill the cells of K Map in accordance with the given boolean function.
Then, we form the groups in accordance with the
above rules. Then, we have-
Now,
F(A, B, C, D)
Solution-
Since the given boolean expression has 4 variables, so we draw a 4 x 4 K Map.
We fill the cells of K Map in accordance with the given boolean function.
Then, we form the groups in accordance with the
above rules. Then, we have-
Now,
F(A, B, C, D)
Problem-09:
Consider the following boolean function-
Solution-
Since the given boolean expression has 4 variables, so we draw a 4 x 4 K Map.
We fill the cells of K Map in accordance with the given boolean function.
Then, we form the groups in accordance with the
above rules. Then, we have-
|Page٥
٣
Now,
F(W, X, Y, Z)
= XZ’ + X’Z
=X⊕Z
F(W, X, Y, Z) = X ⊕ Z
The truth table in above: (a) describes a logic function that has a 1 output only when
the BCD code for 7,8, or 9 is present on the inputs. If the "don't cares" are used as 1s,
the resulting expression for the function is A + BCD, as indicated in part (b). If the
"don't cares" are not used as 1s, the resulting expression is ABC + ABCD: so you can
see the advantage of using "don't care" terms to get the simplest expression.