Skip to content

Challenge Problems: Karnaugh Maps

These challenge problems test deeper understanding. Only final answers are provided — work through each problem on your own.


Challenge 1: 4-Variable K-Map with Don't Cares

Simplify the following function using a Karnaugh map to obtain the minimum SOP expression:

\[F(A, B, C, D) = \sum m(2, 3, 4, 5, 13, 15) + \sum d(8, 9, 10, 11)\]
Show Answer

\(F = \overline{A}\,\overline{B}\,C + \overline{A}\,B\,\overline{C} + A\,\overline{B} + B\,C\,D\)

Using don't cares optimally:

\(F = \overline{B}\,C + \overline{A}\,B\,\overline{C} + BD\)


Challenge 2: K-Map Yielding POS Form

Find the minimum POS (product of sums) expression for:

\[F(A, B, C, D) = \prod M(0, 1, 2, 8, 9, 10, 14)\]
Show Answer

Group the 0s on the K-map:

\[\overline{F} = \overline{B}\,\overline{C}\,\overline{D} + \overline{B}\,\overline{D}\,A + ...\]

Minimum POS: \(F = (B + D)(A + C)(\overline{A} + B + \overline{C})\)

Equivalently, group the 0s to find \(\overline{F}\), then complement:

\[\overline{F} = \overline{B}\,\overline{D} + \overline{A}\,\overline{C}\,\overline{D} + A\,B\,C\,\overline{D}...\]

Minimum POS: \(F = (B + D)(\overline{A} + C + D)(A + \overline{B} + \overline{C} + D)\)


Challenge 3: Multiple Minimum Solutions

Find ALL minimum SOP expressions for:

\[F(A, B, C, D) = \sum m(0, 2, 5, 7, 8, 10, 13, 15)\]

Identify the essential prime implicants and show that the function has more than one minimum cover.

Show Answer

Essential prime implicants: None — this function has no essential prime implicants.

The prime implicants are: \(\overline{B}\,\overline{D}\), \(B\,D\), \(\overline{A}\,\overline{C}\,\overline{D}\), \(A\,\overline{C}\,\overline{D}\), \(\overline{A}\,C\,D\), \(A\,C\,D\), \(\overline{C}\,\overline{D}\), \(C\,D\).

Two minimum SOP expressions (each with 2 terms, 4 literals):

Solution 1: \(F = \overline{B}\,\overline{D} + BD\)

Solution 2: \(F = \overline{C}\,\overline{D} + CD\)

Both are equivalent to \(F = B \odot D\) and \(F = C \odot D\)...

The two minimum covers are: \(F = \overline{B}\,\overline{D} + B\,D\) and \(F = \overline{C}\,\overline{D} + C\,D\)


Challenge 4: All Prime Implicants Identification

For the function \(F(W, X, Y, Z) = \sum m(0, 2, 4, 5, 6, 7, 8, 10, 13)\), use a K-map to:

  1. Find all prime implicants
  2. Identify the essential prime implicants
  3. Find the minimum SOP expression
Show Answer

All prime implicants:

  • \(\overline{X}\,\overline{Z}\) (covers 0, 2, 8, 10)
  • \(\overline{W}\,X\) (covers 4, 5, 6, 7)
  • \(\overline{W}\,\overline{Z}\) (covers 0, 2, 4, 6)
  • \(W\,X\,\overline{Y}\,Z\) (covers 13)
  • \(\overline{W}\,Y\,\overline{Z}\) (covers 2, 6)
  • \(\overline{W}\,X\,\overline{Y}\) (covers 4, 5)

Essential prime implicants:

  • \(\overline{X}\,\overline{Z}\) (only PI covering minterms 8 and 10)
  • \(\overline{W}\,X\) (only PI covering minterm 7)
  • \(W\,X\,\overline{Y}\,Z\) (only PI covering minterm 13)

Minimum SOP: \(F = \overline{X}\,\overline{Z} + \overline{W}\,X + W\,X\,\overline{Y}\,Z\)


Challenge 5: 5-Variable K-Map Simplification

Simplify the following 5-variable function using a K-map (two 4-variable maps for \(A = 0\) and \(A = 1\)):

\[F(A, B, C, D, E) = \sum m(0, 1, 2, 4, 5, 6, 16, 17, 18, 20, 21, 22, 25, 29)\]
Show Answer

Split into two maps:

\(A = 0\) map: minterms \(0, 1, 2, 4, 5, 6\) → These are \(\overline{C}\,\overline{D}\,\overline{E}\), \(\overline{C}\,\overline{D}\,E\), \(\overline{C}\,D\,\overline{E}\), \(C\,\overline{D}\,\overline{E}\), \(C\,\overline{D}\,E\), \(C\,D\,\overline{E}\)\(\overline{B}\,\overline{E} + \overline{B}\,\overline{D}\)

Wait — reindex: for \(A=0\), minterms 0–15 map to \(BCDE\):

  • \(m(0) = 0000\), \(m(1) = 0001\), \(m(2) = 0010\), \(m(4) = 0100\), \(m(5) = 0101\), \(m(6) = 0110\)

Group: \(\overline{B}\,\overline{D} + \overline{B}\,\overline{E} + ...\)

Simplified: \(\overline{B}\,\overline{E} + \overline{B}\,\overline{D} = \overline{B}(\overline{D} + \overline{E})\)... actually \(= \overline{B}\,\overline{E} + \overline{D}\,\overline{E}\)

From the K-map: \(\overline{B}\,\overline{E} + \overline{B}\,D\,\overline{E}\)... these minterms form \(\overline{B}\,\overline{E} + \overline{B}\,\overline{D}\)...

Minimum SOP: \(F = \overline{B}\,\overline{E} + \overline{B}\,\overline{D} + \overline{A}\,\overline{B}\,D\,\overline{E}\)...

Final answer:

\(F = \overline{B}\,\overline{E} + \overline{B}\,D\,\overline{E} + A\,\overline{B}\,D\,E\)

More carefully: \(F = \overline{B}\,\overline{E} + \overline{D}\,\overline{E} + A\,\overline{B}\,\overline{C}\,D\,E\)


Challenge 6: K-Map with All Don't Cares Used

Simplify $F(A,B,C,D) = \Sigma m(1,3,5,7,9) + d(6,12,13)$ using a K-map. Find both the minimum SOP and minimum POS expressions.

Show Answer

On the K-map, minterms 1,3,5,7 form the group \(\overline{A}D\). Minterm 9 with don't care 13 forms \(A\overline{B}D\). Using don't care 12 with 13 and 9 gives \(A\overline{B}\).

Minimum SOP: \(F = \overline{A}D + A\overline{B}\) (4 literals)

Minimum POS: \(F = (\overline{A} + \overline{B})(D + A)\) (4 literals)


Challenge 7: Multiple Minimum Solutions

For $F(A,B,C,D) = \Sigma m(0,2,5,7,8,10,13,15)$, show that there are exactly two distinct minimum SOP expressions with the same cost. Identify both.

Show Answer

Essential PIs: \(\overline{C}D\) (covers 5,7,13,15) — wait, let me recheck.

PIs: \(\overline{B}\,\overline{D}\) (0,2,8,10), \(BD\) (5,7,13,15). These are both essential and cover all minterms.

Actually: \(F = \overline{B}\,\overline{D} + BD\) — this is the XNOR function \(B \odot D\).

There is only one minimum SOP: \(F = \overline{B}\,\overline{D} + BD\) (4 literals). The minimum POS is \(F = (\overline{B}+D)(B+\overline{D})\) (also 4 literals). Both have the same cost because the function is symmetric in B and D, independent of A and C.


Challenge 8: POS Minimization via K-Map

Find the minimum POS expression for $F(A,B,C,D) = \Pi M(0,1,2,4,5,11,15)$ using a K-map. Circle the 0s to find maxterm groupings.

Show Answer

On-set (1s): minterms {3,6,7,8,9,10,12,13,14}. Off-set (0s): {0,1,2,4,5,11,15}.

Group the 0s on the K-map:

- {0,1,4,5}: \(\overline{A}\,\overline{C}\) → factor \((A+C)\)

- {0,2}: \(\overline{A}\,\overline{B}\,\overline{D}\) → factor \((A+B+D)\)

- {11,15}: \(BCD\) → factor \((\overline{B}+\overline{C}+\overline{D})\)

Minimum POS: \(F = (A+C)(A+B+D)(\overline{B}+\overline{C}+\overline{D})\)