Karnaugh Map Minimization Example | Generated by AI

Home 2025.10

Example of Karnaugh Map Usage: Minimizing a 3-Variable Boolean Function

Let’s walk through a practical example of using a K-map to simplify a Boolean expression. We’ll use a 3-variable function (A, B, C) where the output is 1 for minterms m(1, 2, 4, 7). This means:

The goal is to minimize this into the fewest terms (and literals) possible, which reduces the number of logic gates in a circuit.

Step 1: Construct the K-Map

A 3-variable K-map is a 2x4 grid (or 4x2, but we’ll use rows for AB and columns for C). The rows are labeled in Gray code order (00, 01, 11, 10) to ensure adjacent cells differ by only one bit. Place 1s in the cells corresponding to the minterms:

AB \ C 0 1
00 0 1 (m1)
01 1 (m2) 0
11 0 1 (m7)
10 1 (m4) 0

(Here, m1 = A’B’C, m2 = A’BC’, m4 = AB’C’, m7 = ABC.)

Step 2: Group Adjacent 1s

The key to minimization is finding the largest possible groups (rectangles or squares) of 1s that are adjacent (including wrap-around edges, like a torus). Each group must be a power of 2 (1, 2, 4, 8, etc.) in size. Groups can overlap.

Wait, re-plot for clarity—actually, optimal groups for this function:

I picked a bad example—let me choose a better one with clear groups to illustrate.

Revised Example for Clarity: Let’s use f(A, B, C) = Σ m(0, 1, 2, 4, 5, 6) = A’B’C’ + A’B’C + A’BC’ + AB’C’ + AB’C + ABC’

K-map:

| AB \ C | 0 | 1 | |——–|——-|——-| | 00 | 1 (m0) | 1 (m1) | | 01 | 1 (m2) | 0 (m3) | | 11 | 0 (m6? m6=110 col0=1 wait) | Wait, m6=ABC’ =110 col0 yes.

Correct table:

AB \ C 0 (C’) 1 (C)
00 (A’B’) 1 (000) 1 (001)
01 (A’ B) 1 (010) 0 (011)
11 (A B ) 1 (110) 0 (111)
10 (A B’) 1 (100) 1 (101) Wait, m5=101=1, but I said m5 yes.

Minterms: 0(000),1(001),2(010),4(100),5(101),6(110)—yes m3(011)=0, m7(111)=0.

So table:

AB \ C 0 1
00 1 1
01 1 0
11 1 0
10 1 1

Step 3: Identify Groups

Now, group the 1s:

To minimize, we choose non-overlapping or minimal covering groups that cover all 1s with largest sizes.

Optimal:

m5 is covered, m1 covered.

Note: m0 is in both group1 and group2, but that’s OK—overlaps allowed.

Step 4: Derive the Minimized Expression

Each group becomes a product term (AND of the common literals):

So, minimized SOP (Sum of Products): f = C’ + A’B’ + B’C

Verify: This has 3 terms (vs original 6), fewer literals (4 vs 12), simpler circuit (3 AND/OR gates basically).

You can plot this on a truth table to confirm it matches the original 1s.

Why This Minimizes?

This example shows how K-maps turn a sum-of-minterms into a compact form quickly without algebraic manipulation. For 4+ vars, use software, but practice with 2-3 var examples builds intuition.

Digital Logic Design Basics


Back

x-ai/grok-4-fast

Donate