Five-Variable Karnaugh Map (K-map)
Dr. M Rambabu
Course Code: 24CSEN1001
Course Name: Digital Logic Circuits
Date: February 18, 2025
1 Introduction
Karnaugh Maps (K-maps) simplify Boolean functions by grouping adjacent squares containing ones
(1s) or don’t-care conditions (X). However, as the number of variables increases, the number of
squares increases exponentially (2n ), making simplification more complex. A five-variable K-map
consists of 32 squares, while a six-variable K-map requires 64 squares. For more than five variables,
computer-based Boolean simplification tools are preferable.
2 Structure of a Five-Variable K-map
A five-variable K-map consists of two four-variable maps:
The first map represents cases where A = 0.
The second map represents cases where A = 1.
Each four-variable map retains standard adjacency rules, but additional adjacency exists between
corresponding squares across the two maps. For example:
Minterm 0 (in A = 0) is adjacent to minterm 16 (in A = 1).
Minterm 15 (in A = 0) is adjacent to minterm 31 (in A = 1).
A useful way to visualize the five-variable K-map is to think of the two four-variable maps stacked
on top of each other as shown in Figure 1 (a).
3 Grouping in a Five-Variable K-map
Boolean function simplification is achieved by grouping adjacent ones (1s) or don’t-care conditions
(X). The number of adjacent squares determines the number of literals in the final Boolean expression.
Relationship Between Adjacent Squares and Literals
The number of adjacent squares and the corresponding number of literals in the simplified expression
follows this pattern:
This follows the formula:
Number of literals = n − k
where n is the total number of variables and k represents the grouping size (as 2k ).
1
Figure 1: (a) Five-variable K-map layout.
Number of Adjacent Squares (2k ) Number of Literals in Expression (n − k)
1 (Single cell) 5 literals
2 (Pair) 4 literals
4 (Quad) 3 literals
8 (Octet) 2 literals
16 (Block) 1 literal
32 (Full map) 0 literals (Identity function)
Table 1: Relationship between the number of adjacent squares and the number of literals in a five-
variable K-map.
Conclusion
A five-variable K-map extends the four-variable K-map into a three-dimensional structure. The two
layers allow additional grouping opportunities, reducing the complexity of Boolean expressions. The
simplification process involves grouping adjacent cells across both layers to minimize literals in the
final expression.
Questins:
1. Draw the Karnaugh Map (K-map) layout for a five-variable Boolean function.
2. A 5-variable canonical SOP function has 4 minterms. How many literals are in its original and
minimized forms if they form a quad in the K-map?
3. Simplify the Boolean function using a 5-variable K-map:
X
F = (0, 1, 2, 8, 9, 16, 17, 24, 25, 26) + d(3, 10, 11, 18, 19),
where ’d’ represents don’t-care conditions.
2
4. Minimize the given 5-variable function using a K-map and draw the logic circuit:
X
F = (4, 5, 6, 12, 13, 20, 21, 28, 29) + d(0, 1, 9, 30, 31).