Lesson 18 +35 XP

Minimization of Boolean Expressions: Karnaugh Maps

Minimization of Boolean Expressions: Karnaugh Maps

Simpler expressions mean fewer gates, less power and faster circuits. We can simplify with the laws of Lesson 17, but Karnaugh maps (K-maps) make it systematic for up to 4-5 variables.

1. Algebraic Minimization

F = A′B′C + A′BC + AB′C = A′C(B′ + B) + AB′C = A′C + AB′C = C(A′ + AB′) = C(A′ + B′). (simplification law)

2. Building a K-Map

A K-map has one cell per minterm, arranged in Gray-code order (00, 01, 11, 10) so that adjacent cells differ in exactly one variable. The left and right edges (and top and bottom) also count as adjacent-the map wraps around.

3-variable and 4-variable K-maps with groups3-variable and 4-variable K-maps with groups

3. Grouping Rules

  1. Group only 1s (for SOP), in rectangles of size 1, 2, 4, 8, … (powers of 2).
  2. Make each group as large as possible, and use as few groups as possible.
  3. Groups may overlap and may wrap around edges and corners.
  4. Every 1 must be in at least one group.
  5. A group of 2ᵏ cells eliminates k variables-keep only the variables that are constant across the group.

4. Solved Examples

Solved 1 (3 variables). X = 1 on rows 000, 010, 011, 110, 111.

AB \ C01
0010
0111
1111
1000
  • The four cells with B = 1 (rows 01 and 11) form a quad → B.
  • 000 and 010 (column C = 0, rows 00 and 01) form a pair → A′C′.

X = A′C′ + B

Solved 2 (4 variables). F(A, B, C, D) = Σm(0, 1, 2, 5, 8, 9, 10).

  • Quad m(0, 1, 8, 9): B = 0, C = 0 → B′C′
  • Quad m(0, 2, 8, 10) (four corners): B = 0, D = 0 → B′D′
  • Pair m(1, 5): A = 0, C = 0, D = 1 → A′C′D

F = B′C′ + B′D′ + A′C′D

Solved 3 (don't-cares). F = Σm(1, 3, 7, 11, 15) + d(0, 2, 5). Don't-care cells (X) may be taken as 1 if that enlarges a group.

  • Quad m(3, 7, 11, 15): C = 1, D = 1 → CD
  • Quad m(0, 1, 2, 3) using d(0), d(2): A = 0, B = 0 → A′B′

F = CD + A′B′

💡 Tip

Corners and edges are the most-missed groups. In a 4-variable map the four corner cells m(0, 2, 8, 10) form a valid quad.

5. POS Minimization

Group the 0s instead to get F′ in SOP, then apply De Morgan to obtain F in POS. For Solved 1 the 0s are 001, 100, 101: F′ = AB′ + B′C, so F = (A′ + B)(B + C′).

6. Beyond K-Maps-Quine-McCluskey

For more than 5 variables the tabular (Quine-McCluskey) method is used: list minterms by number of 1s, repeatedly combine terms differing in one bit to find prime implicants, then choose a minimal cover with a prime-implicant chart. It is the same idea as a K-map but mechanical, so it can be programmed.

🎯 END-TERM EXAM PREP

📝 IPU End-Term Exam Corner (5-10 Marks)

  • Q1. Minimise F(A, B, C, D) = Σm(0, 1, 2, 5, 8, 9, 10) using a K-map. (5 Marks) → B′C′ + B′D′ + A′C′D.
  • Q2. Minimise F = Σm(1, 3, 7, 11, 15) + d(0, 2, 5). (5 Marks) → CD + A′B′.
  • Q3. State the rules for grouping in a K-map. Why is Gray-code ordering used? (5 Marks)