Simplification Using K-Map
Simplification Using K-Map
x + y = x’y + xy’ + xy = m1 + m2 + m3
Algebraic simplification yields the same logic expression. Therefore, to find a minimum
implementation for a given logic function, it is necessary to find the smallest number of product
terms that produce a value of 1 for all cases. At the same time, the number of these product terms
should be as low as possible. Notice how some of the 1's are ...
The truth table has total of 8 rows which corresponds to 8 cells of the 3-variable K-map.
Each cell differs in only one variable to its neighbor, both horizontally and vertically.
To minimize the terms in a boolean function, mark a cell as 1 if its output is 1 in the truth table
and leave the rest as it is.
To minimize the variables within each term of a cell that has 1 in K-map, start making groups of
2, 4, and 8.
Grouping of 1s includes neighboring cells, corners and sides even though they overlap each other.
Make larger groups if possible.
Once all 1s are covered then you can stop. Now that you know the 3-variable map and its
characteristics. It is time to see an example.
Solution:
The function use three minterms that gives output 1 as per truth table.
Solution – Three variable map with cells marked which gives output 1
Question 2 – Plot a three variable map and show grouping of two for marked cells for the
following function.
Solution:
Question 3 – Plot a three variable map for following function and make group of four cells
that are marked as 1s.
Solution:
You should note that both sides are overlapped and made into a group of 4 four because
two side when compared have a difference of 1 variable, for example, A’B’C’ and A’BC’
has only difference of B’ and B. This applies to both – horizontal and vertical directions.
The sides and corners are also neighbors of each other with a difference of 1 variable
change.
Solution:
We will find the solution to this problem in step by step manner.
Step 1: Plot a 3-variable map and mark the terms from the function to 1.
//Group of two
= A'B'C' + A'B'C
= A' is common vertically
= B' is common horizontally
Our first term is A'B'.
//Group of four
= A'B'C + A'BC + AB'C + ABC
= A' + A cancel out vertically, leaving B'C + BC
= C is only common variable horizontally.
Our second term is C.
The final minimized equation is F = A'B'+ C
The above Boolean expression has seven product terms. They are mapped top to bottom and left
to right on the K-map above. For example, the first P-term A’B’CD is the first row, 3rd cell,
corresponding to map location A=0, B=0, C=1, D=1.
The other product terms are placed in a similar manner. Encircling the largest groups possible,
two groups of four are shown above.
The dashed horizontal group corresponds to the simplified product term AB. The vertical group
corresponds to Boolean CD. Since there are two groups, there will be two product terms in the
Sum-Of-Products result of Out=AB+CD.
Fold up the corners of the map below like it is a napkin to make the four cells physically adjacent.
The four cells above are a group of four because they all have the Boolean variables B’ and D’ in
common. In other words, B=0 for the four cells, and D=0 for the four cells.
The other variables (A, C) are 0 in some cases, 1 in other cases with respect to the four corner
cells.
Thus, these variables (A, C) are not involved with this group of four. This single group comes out
of the map as one product term for the simplified result: Out=B’D’
For the K-map below, roll the top and bottom edges into a cylinder forming eight adjacent cells.
The above group of eight has one Boolean variable in common: B=0. Therefore, the one group of
eight is covered by one p-term: B’. The original eight-term Boolean expression simplifies to
Out=B’