Simplification of Boolean Functions:: The Karnaugh Map (K Map) Method Introduction
Simplification of Boolean Functions:: The Karnaugh Map (K Map) Method Introduction
Variable ‘x’ appears primed in row 0 and unprimed in row 1. Similarly, ‘y’ appears
primed in column 0 and unprimed in column 1.
e.g., F(x,y) = xy = m3 F(x,y) = x + y = 𝑥 ′ 𝑦 + 𝑥𝑦 ′ + 𝑥𝑦 = 𝑚1 + 𝑚2 + 𝑚3
Three-Variable K-maps :--
There are eight minterms for three binary variables. Therefore, a map consists of
eight squares.
Note that the minterms are not arranged in a binary sequence, but in a sequence
similar to the Gray code.
The characteristic of this sequence is that only one bit changes from 1 to 0 or from 0 to
1 in the listing sequence.
6) Groups may wrap around the table. The leftmost cell in a row may be grouped with
the rightmost cell and the top cell in a column may be grouped with the bottom cell.
Example 1:--
𝑥𝑦 ′ 𝑧 ′ + 𝑥𝑦 ′ 𝑧 = 𝒙𝒚′
Step-1: First, a 1 is marked in each minterm that is present in the function, e.g., the squares for
minterms 010, 011, 100, and 101 are marked with 1’s.
Step-2: Find possible adjacent squares. These are indicated in the map by two rectangles, each
enclosing two 1's.
Step-3: The upper right rectangle represents the area enclosed by x'y. This is determined by
observing that the two-square area is in row 0, corresponding to x', and the last two columns,
corresponding to y.
Similarly, the lower left rectangle represents the product term xy'.
Step-4: The logical sum of these two product terms gives the simplified expression.
F = x'y + xy'
Example 2:--
𝑥 ′ 𝑦𝑧 + 𝑥𝑦𝑧 = 𝒚𝒛
𝑥𝑦 ′ 𝑧 ′ + 𝑥𝑦𝑧 ′ = 𝒙𝒛′
x
z
There are four squares marked with 1's, one for each minterm of the function.
Two adjacent squares are combined in the third column to give a two-literal term yz.
The remaining two squares with 1's are also adjacent by the new definition. These two
squares when combined, give the two-literal term xz'.
The simplified function becomes: F = yz + xz' .
Such combination represents the logical sum of four minterms and results in an expression of
only one literal.
As an example, the logical sum of the four adjacent minterms 1, 3, 5, and 7 (i.e. m1, m3, m5
m7) reduces to a single literal term z.
𝒛
z
m1+ m3+ m5 + m7 = 𝑥 ′ 𝑦 ′ 𝑧 + 𝑥 ′ 𝑦𝑧 + 𝑥𝑦 ′ 𝑧 + 𝑥𝑦𝑧
= x'z(y' + y) + xz(y' + y)
= x'z + xz = z(x' + x) = z
NOTE: The number of adjacent squares that may be combined must always represent
a number that is a power of two such as 1, 2, 4, and 8.
For a three-variable K map representation:--
One square represents one minterm, giving a term of three literals.
Two adjacent squares represent a term of two literals.
Four adjacent squares represent a term of one literal.
Eight adjacent squares encompass the entire map and produce a function that is always
equal to 1.
Four-Variable K-maps:--
There are 16 minterms for 4 binary variables. Therefore, a map consists of 16 squares.
In fig. (a) are listed the 16 minterms and the squares assigned to each.
In fig. (b) the map is redrawn to show the relationship with the four variables.
The rows and columns are numbered in a reflected-code (Gray code) sequence, with
only one digit changing value between two adjacent rows or columns.
The minterm corresponding to each square can be obtained from the concatenation of the
row number with the column number.
For example, the numbers of the third row (11) and the second column (01), when
concatenated, give the binary number 1101, the binary equivalent of decimal 13. Thus,
the square in the third row and second column represents minterm m13.
Adjacent
squares
Adjacent
squares
Adjacent squares => squares next to each other.
The map is considered to lie on a surface with the top and bottom edges, as well as the
right and left edges, touching each other to form adjacent squares.
For example, m0 and m2 form adjacent squares, as do m3, and m11.
One square represents one minterm, giving a term of four literals (variables).
Two adjacent squares represent a term of three literals.
Four adjacent squares represent a term of two literals.
Eight adjacent squares represent a term of one literal.
Sixteen adjacent squares represent the function equal to 1.
Reference: Digital Design by M Morris Mano, M D Ciletti, 5th edition, Pearson publication.