Map and Map Simplification - Coding Ninjas
Map and Map Simplification - Coding Ninjas
Pranay Chauhan
Introduction
Discrete-valued digital signals are dealt in digital electronics. Binary notation (zeroes and ones) is
used to express the states of the variables in any electronic system based on digital logic. As a
result, Boolean algebraic simplification is an essential aspect of digital electronic system design
and analysis.
Although DeMorgan's theorems and Boolean algebraic rules can be utilized to accomplish the goal,
the method becomes arduous and error-prone as the number of variables involved grows. This
demands the use of an appropriate, relatively basic simplification technique, such as Maurice
Karnaugh's Karnaugh map (K-map), which he introduced in 1953.
K-Maps
The Karnaugh Map, commonly known as the K Map, is a graphical representation that
methodically reduces boolean expressions.
Structure of K-Maps
Two-Variable K-Map
Let us consider that there are two variables. For a boolean expression with two variables, a K Map
is created.
K-Map Simplification
We create a K Map based on the number of variables in the supplied boolean function to reduce it.
Rule 1
We can only group 0s with 0s or 1s with 1s; however, we cannot group 0s and 1s together. The ‘X’
symbol for don't care can be grouped with 0s and 1s.
NOTE: There is no need to separately group X's, i.e. they can be ignored if all 0's and 1's are
already grouped.
Rule 2
We can only make a group with a number of cells that is a multiple of two.
In other words, a group can only have 2n cells, i.e. 1, 2, 4, 8, 16, and so on.
Rule 4
Only horizontal or vertical groups are allowed. We are unable to form diagonal or any other shape
groupings.
Rule 5
The use of opposite and corner grouping is permitted. In Rule 5, an example of opposite grouping
is shown.
Rule 7
Example 1 (SOP)
F(A,B,C,D) = Σ m(1,0,2,5,7,8,9,10,13,15)
Solution
We draw a 4 x 4 K-Map because the given boolean expression includes four variables: ‘A’, ‘B’, ‘C’
and ‘D’. The specified boolean function is used to fill the cells of the K-Map.
Now, From each group, we only consider the variables which are common in each cell of the group
of the K-Map.
F(A, B, C, D)
= B’D’ + C’D + BD
Example 2 (POS)
F(A,B,C,D) = π(1,0,2,5,7,8,9,10,13,15)
Solution
We draw a 4 x 4 K-Map because the given boolean expression includes four variables: ‘A’, ‘B’, ‘C’
and ‘D’. The specified boolean function is used to fill the cells of the K-Map.
Now, From each group, we only consider the variables which are common in each cell of the group
of the K-Map.
F(A, B, C, D)
= (B+D)(C+D’)(B’+D’)
F(A, B, C, D) = (B+D)(C+D’)(B’+D’)
FAQs
What is a K-Map?
The Karnaugh Map, commonly known as the K Map, is a graphical representation that allows you
to reduce boolean expressions in a methodical way.
What is POS?
A set of max terms or sum terms is used to describe a Boolean statement in POS(Product of Sums).
Eg: (AB+CD)
What is SOP?
A set of minterms or product terms is used to describe a Boolean statement in SOP(Sum of
Products).
Eg: (A+B).(C+D)
Key Takeaways
In this article, we learned about the concept of K-Maps. We also learned about the structure of
K-Maps for the different numbers of variables. We also learned about the rules to simplify a
boolean expression using K-Maps. At the end of the article, we learned how to solve problems
using K-Maps.
To learn more about the subject of Digital Electronics, refer to the evolution of computers and
the classification of computers.
Happy Learning!