F(A,B,C,D) = Σm(1,3,7,11,15) + d(0,2,5) — Karnaugh map

coredon't-cares used to enlarge groups; 2 minimal covers

Answer

A′ · B′ + C · D | A′ · D + C · D

Note:

2 equally minimal forms exist, all of the same cost: A′ · B′ + C · D | A′ · D + C · D.

Why this example is worth doing

The standard textbook don't-care problem, and the one that teaches what a don't-care actually is. The three X cells are not extra 1s you must cover and not 0s you must avoid; they are cells you may claim when claiming them makes a group bigger, and ignore otherwise. Here the tool takes 0 and 2 to build A̅B̄ and leaves 5 unused, and there is a second equally minimal cover using A̅D instead. Solving it without don't-cares gives three terms rather than two.

Try your own input in the Karnaugh map solver. Group a 2- to 6-variable map yourself and have every group marked right or wrong.

How the answer is reached

Quine–McCluskey

Prime implicants — Quine–McCluskey
#Term
1A′ · B′
2A′ · D
3C · D
Every minimum cover — Quine–McCluskey
#Cover
1A′ · B′ + C · D
2A′ · D + C · D
Warning:

2 term(s), 4 literal(s); 1 essential prime implicant(s).

Truth table

Truth table — columns #, A, B, C, D, F
#ABCDF
00000X
100011
20010X
300111
401000
50101X
601100
701111
810000
910010
1010100
1110111
1211000
1311010
1411100
1511111

Compare with

Open this example in the Karnaugh map solver

The field arrives filled in with this example’s input.

Note:

Notation this page assumes

  • Symbols: · is AND, + is OR, ⊕ is XOR, a prime or an overline is NOT. The field also takes ∧ ∨ ¬ ~ ! & | and the words.
  • Operator precedence, tightest first: NOT, then AND (including juxtaposition), then XOR/XNOR, then NAND/NOR, then OR, then IMPLIES, then IFF.
  • In a minterm index the first variable is the most significant bit, so over [A, B, C] minterm 5 is A·B̄·C.

Sources

  • Karnaugh, “The Map Method for Synthesis of Combinational Logic Circuits” (1953)
  • Veitch, “A Chart Method for Simplifying Truth Functions” (1952)