Skip to content

3.7 Don't cares

Why this matters

Some rows of a truth table do not matter: the input can never happen, or nobody looks at the output when it does. A circuit is free to answer 0 or 1 on those rows, and a good designer uses that freedom to make the circuit smaller. The same freedom is what keeps a real design from carrying logic for situations that cannot occur.

  • Explain what a don't care is and name two situations that produce one.
  • Mark the don't cares of a function as X on a map and recognize them in a truth table.
  • Choose each X as 0 or 1 so that groups get larger, and leave an X alone when it does not help.
  • Compare the results of setting every X to 0, setting every X to 1, and choosing each one on its merits.

Suppose a function takes a decimal digit written in four bits. The codes for 0 to 9 are 0000 to 1001, and the six codes 1010 to 1111 are never produced by anything upstream. What should the function output for 1100? Any answer is fine, because the input will never be 1100. So the designer can write down whichever answer gives the smallest circuit.

A software version is a function with a precondition: it is only ever called with a digit from 0 to 9, so what it does for other values is up to the implementer. One thing differs. Hardware never reports a precondition violation. If a wiring fault did send 1100, the circuit would output whatever the minimized logic happens to compute for it, with no error raised. A don't care is a promise from the rest of the system that this will not be needed.

Definition 3.7.1(don't care).

A don't care is an input pattern for which the function's output may be either 0 or 1, because the pattern never occurs or because the output is ignored when it does. In a table or on a map it is written X.

A function with don't cares has three kinds of rows: those that must output 1, those that must output 0, and those that are free. Only the first two kinds are held to anything. The X in this section is a choice that the designer makes. The X that a simulator shows on a waveform is something else, a wire whose value is unknown, and Section 3.9 returns to how a SystemVerilog case statement states a don't care to a synthesis tool.

Don't cares come from two places. The first is inputs that cannot occur, such as the six unused codes of a digit in four bits. The second is outputs that are ignored: when another output already tells the rest of the circuit not to look at this one, the value on those rows is free too. Section 3.9 uses both in design examples. Don't cares in a function always come from its specification, and never from the designer's wishes: you cannot make a row a don't care just because it would be convenient.

The example for this section is the map in Figure 3.7.1. Its function has five 1s, three X cells, and eight 0s.

Karnaugh map of F: columns AB, rows CD00X011X111000X00ABCDABCD
Karnaugh map of F: columns AB, rows CD; cell values are 0, 1 or X for don't care
AB=00AB=01AB=11AB=10
CD=0000X0
CD=0111X1
CD=111100
CD=100X00

Description: A four-variable Karnaugh map with columns AB and rows CD, drawn with brackets, containing five 1s, three X cells and eight 0s.

Figure 3.7.1. A map with three don't cares. The cells marked X can be chosen freely.

There are three obvious ways to treat the X cells, and the example works through each.

Example 3.7.1(X as 0, X as 1, and X chosen).

Every X as 0. The X cells become 0s, and the map is an ordinary map of five 1s, shown in Figure 3.7.2. The 2-by-2 square in the rows where D=1 and the columns where A=0 covers four of them and gives A‾D\overline{A}D. The fifth 1, where A, B, C and D are 1, 0, 0, 1, has a neighbor across the edge of the map, the 1 where they are 0, 0, 0, 1, and the two form a horizontal pair wrapping around the left and right edges in the row where C=0 and D=1 and the columns where B=0, which gives B‾ C‾D\overline{B}\,\overline{C}D.

Karnaugh map of F: columns AB, rows CD0000110111000000ABCDABCD

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

  • A‾D\overline{A}D2-by-2 square: the rows where D=1 and the columns where A=0
  • B‾ C‾D\overline{B}\,\overline{C}Dhorizontal pair, wraps left and right: the row where C=0 and D=1 and the columns where B=0 (2 cells)
Karnaugh map of F: columns AB, rows CD; cell values are 0, 1 or X for don't care
AB=00AB=01AB=11AB=10
CD=000000
CD=011101
CD=111100
CD=100000

Groups drawn:

  1. not A and D: 2-by-2 square in the rows where D=1 and the columns where A=0; 4 cells.
  2. not B and not C and D: horizontal pair wrapping around the left and right edges in the row where C=0 and D=1 and the columns where B=0; 2 cells.

Description: The same map with the three X cells replaced by 0, and two groups: a square and a pair wrapped around the left and right edges.

Figure 3.7.2. Every X taken as 0. The result has two terms of two and three variables.

Every X as 1. Now there are eight 1s, and every one of them must be covered, including the two former X cells where A, B, C and D are 1, 1, 0, 0 and 0, 1, 1, 0. No group of four holds either of them without also holding a 0, so each needs a pair of its own. The map in Figure 3.7.3 needs four terms, which is more than with every X as 0.

Karnaugh map of F: columns AB, rows CD0010111111000100ABCDABCD

F = A‾D+C‾D+ABC‾+A‾BC\overline{A}D + \overline{C}D + AB\overline{C} + \overline{A}BC

  • A‾D\overline{A}D2-by-2 square: the rows where D=1 and the columns where A=0
  • C‾D\overline{C}Drow of four: the row where C=0 and D=1 (4 cells)
  • ABC‾AB\overline{C}vertical pair: the rows where C=0 and the column where A=1 and B=1 (2 cells)
  • A‾BC\overline{A}BCvertical pair: the rows where C=1 and the column where A=0 and B=1 (2 cells)
Karnaugh map of F: columns AB, rows CD; cell values are 0, 1 or X for don't care
AB=00AB=01AB=11AB=10
CD=000010
CD=011111
CD=111100
CD=100100

Groups drawn:

  1. not A and D: 2-by-2 square in the rows where D=1 and the columns where A=0; 4 cells.
  2. not C and D: row of four in the row where C=0 and D=1; 4 cells.
  3. A and B and not C: vertical pair in the rows where C=0 and the column where A=1 and B=1; 2 cells.
  4. not A and B and C: vertical pair in the rows where C=1 and the column where A=0 and B=1; 2 cells.

Description: The same map with the three X cells replaced by 1, and four groups.

Figure 3.7.3. Every X taken as 1. The new 1s where A, B, C and D are 1, 1, 0, 0 and 0, 1, 1, 0 each need a term of their own.

Choosing wisely. The X cells are not obligations. A 1 must be covered, and an X may be covered if that makes a group bigger. Here one X helps: the cell where A, B, C and D are 1, 1, 0, 1 lets the pair from the first attempt grow into the row of four, whose term C‾D\overline{C}D has two variables instead of three. The other two X cells are left out, and they stay 0 in the circuit.

Karnaugh map of F: columns AB, rows CD00X011X111000X00ABCDABCD

F = A‾D+C‾D\overline{A}D + \overline{C}D

  • A‾D\overline{A}D2-by-2 square: the rows where D=1 and the columns where A=0
  • C‾D\overline{C}Drow of four: the row where C=0 and D=1 (4 cells); 1 of the cells is a don't care
Karnaugh map of F: columns AB, rows CD; cell values are 0, 1 or X for don't care
AB=00AB=01AB=11AB=10
CD=0000X0
CD=0111X1
CD=111100
CD=100X00

Groups drawn:

  1. not A and D: 2-by-2 square in the rows where D=1 and the columns where A=0; 4 cells.
  2. not C and D: row of four in the row where C=0 and D=1; 4 cells, 1 of them don't care.

Description: The don't-care map with two groups: the same square as before, and a group of four that covers the row where C is 0 and D is 1 and uses one X cell.

Figure 3.7.4. Only one X is used, as a 1. The group of four that uses it has a shorter term than the pair in the first attempt.

This is the only minimal sum-of-products form of F (2 terms and 4 literals).

The answers of the three attempts agree on every input that matters: A‾D+\overline{A}D + B‾ C‾D\overline{B}\,\overline{C}D =A‾D+= \overline{A}D + C‾D\overline{C}D (for every input that is not a don't care) and A‾D+\overline{A}D + C‾D\overline{C}D =A‾D+= \overline{A}D + C‾D+\overline{C}D + ABC‾+AB\overline{C} + A‾BC\overline{A}BC (for every input that is not a don't care). They can differ only on the X rows. The first and the third, for example, differ at exactly one input pattern, where A, B, C and D are 1, 1, 0, 1: the first answer gives 0 there and the third gives 1. The third answer has two terms of two variables each, while the first has two terms with five variables in all. Setting every X to 1 was the worst of the three, not the best.

The grouping rules of the previous section (Definition 3.6.1) stay in force with one addition: a group may hold X cells as well as 1s, and still never a 0. Two sentences cover what the example added. Every 1 must be in some group, and a group must never contain a 0. An X may be in a group, and it may be left out, whichever makes the groups bigger and fewer. An X that ends up inside a group is a 1 in the circuit that you build, and an X that is in no group is a 0. A group of nothing but X cells is never worth drawing, because it would add a term and cover no 1. The finished circuit has no "don't care" output: for each X pattern it gives a definite 0 or 1, decided by whether your groups happen to cover that cell, and that is why nothing else in the design may count on it.

Notice what this does not say. It does not say that every X should be grouped, and it does not say that none should. What matters is whether an X makes some group bigger.

The digit example from the start of the section is typical. Take a function that is 1 when a digit in four bits is 5 or more.

Example 3.7.2(a digit that is 5 or more).

The digits 5 to 9 are the codes 0101, 0110, 0111, 1000 and 1001. The codes 1010 to 1111 are impossible, so they are X. Figure 3.7.5 lists the function.

Truth table with 4 inputs (A, B, C, D) and output F; 16 rows in ascending binary order, A most significant; X means don't care
ABCDF
00000
00010
00100
00110
01000
01011
01101
01111
10001
10011
1010X
1011X
1100X
1101X
1110X
1111X

Description: A sixteen-row truth table with inputs A, B, C and D and output F, with don't care entries X for the codes 1010 to 1111.

Figure 3.7.5. Digits 5 to 9 give 1, the digits 0 to 4 give 0, and the six impossible codes are X.

The same function with the six impossible codes treated as 0 needs three groups, all of them pairs, shown in Figure 3.7.6.

Karnaugh map of F: columns AB, rows CD0001010101000100ABCD0001111000011110

F = A‾BD+A‾BC+AB‾ C‾\overline{A}BD + \overline{A}BC + A\overline{B}\,\overline{C}

  • A‾BD\overline{A}BDvertical pair: rows 01 and 11, column 01 (2 cells)
  • A‾BC\overline{A}BCvertical pair: rows 11 and 10, column 01 (2 cells)
  • AB‾ C‾A\overline{B}\,\overline{C}vertical pair: rows 00 and 01, column 10 (2 cells)
Karnaugh map of F: columns AB, rows CD; cell values are 0, 1 or X for don't care
AB=00AB=01AB=11AB=10
CD=000001
CD=010101
CD=110100
CD=100100

Groups drawn:

  1. not A and B and D: vertical pair in rows CD=01 and 11, column AB=01; 2 cells.
  2. not A and B and C: vertical pair in rows CD=11 and 10, column AB=01; 2 cells.
  3. A and not B and not C: vertical pair in rows CD=00 and 01, column AB=10; 2 cells.

Description: A four-variable Karnaugh map with five 1s and three pairs.

Figure 3.7.6. The digit test with the impossible codes taken as 0: three pairs, three terms of three variables each.

The don't cares change that. All of the codes that start with a 1 are either 8 or 9, which are 1s, or impossible, which are X, so the whole group of eight in columns AB=11 and 10 can be one group, with the one-variable term A. The remaining 1s are 5, 6 and 7. They share B, and each sits in a group of four whose other two cells are X: the 2-by-2 square in rows CD=01 and 11, columns AB=01 and 11 gives BDBD and the 2-by-2 square in rows CD=11 and 10, columns AB=01 and 11 gives BCBC.

Karnaugh map of F: columns AB, rows CD00X101X101XX01XXABCD0001111000011110

F = A+BD+BCA + BD + BC

  • AAgroup of eight: columns 11 and 10 (8 cells); 6 of the cells are don't care
  • BDBD2-by-2 square: rows 01 and 11, columns 01 and 11; 2 of the cells are don't care
  • BCBC2-by-2 square: rows 11 and 10, columns 01 and 11; 2 of the cells are don't care
Karnaugh map of F: columns AB, rows CD; cell values are 0, 1 or X for don't care
AB=00AB=01AB=11AB=10
CD=0000X1
CD=0101X1
CD=1101XX
CD=1001XX

Groups drawn:

  1. A: group of eight in columns AB=11 and 10; 8 cells, 6 of them don't care.
  2. B and D: 2-by-2 square in rows CD=01 and 11, columns AB=01 and 11; 4 cells, 2 of them don't care.
  3. B and C: 2-by-2 square in rows CD=11 and 10, columns AB=01 and 11; 4 cells, 2 of them don't care.

Description: A four-variable Karnaugh map with six X cells, a group of eight and two groups of four.

Figure 3.7.7. The digit test with don't cares: a group of eight and two groups of four, each using impossible codes.

The result has three terms and five variables written in total, against three terms and nine variables without the don't cares, and the circuit gives the right answer for every digit from 0 to 9.

How CSE 369 writes this

In CSE 369 we write the letter X in a cell for a don't care, and the rule is that a don't care is used only when it helps: it joins a group when that makes the group bigger, and otherwise it is left alone. A function with don't cares can have several equally good answers, so the book says "a minimal form" for it, as for any function with more than one minimum.

Common pitfall

  • Setting every X to 1 because "more 1s means bigger groups". Every 1 you create must be covered, and a new 1 that no large group can reach costs a term.
  • Setting every X to 0 and never looking for a group that one X would enlarge. The answer is correct but larger than it needs to be.
  • Drawing a group to cover an X. An X needs no cover, so a group of nothing but X cells adds a term for nothing.
  • Deciding on a don't care because it is convenient. A don't care must come from the specification: an input that cannot occur or an output that is ignored.
  • Relying on what the circuit outputs on a don't care. An X inside a group gives 1 in your circuit and an X outside every group gives 0, but another correct answer would choose differently, so nothing else in the system may depend on it.
Take the quiz (5 questions)

How many terms does a minimal sum of products have for the function in Figure 3.7.1, using the X cells as you like?

Which of these is a minimal sum of products for that function?

How many variables does a minimal sum of products for the digit test "5 or more" write in total, using the impossible codes as don't cares?

A digit in four bits is odd. How many variables does a minimal sum of products write in total when the impossible codes are treated as 0?

Which of these rows can be marked as a don't care?

Exercise 3.7.1

A digit in four bits is odd. The codes 1010 to 1111 never occur. Find a minimal sum of products with the impossible codes as don't cares, and compare it with the answer when they are treated as 0.

Hint
Every odd digit has the same value of one input. Look at all the cells with that value.
Solution

The odd digits 1, 3, 5, 7 and 9 are the codes 0001, 0011, 0101, 0111 and 1001, and all of them have D equal to 1. The other cells where D is 1 are 1011, 1101 and 1111, which are impossible codes and therefore X. So every cell where D is 1 is either a 1 or an X, and together they form one group of eight in rows CD=01 and 11. The function is just DD.

Karnaugh map of F: columns AB, rows CD00X011X111XX00XXABCD0001111000011110

F = DD

  • DDgroup of eight: rows 01 and 11 (8 cells); 3 of the cells are don't care
Karnaugh map of F: columns AB, rows CD; cell values are 0, 1 or X for don't care
AB=00AB=01AB=11AB=10
CD=0000X0
CD=0111X1
CD=1111XX
CD=1000XX

Groups drawn:

  1. D: group of eight in rows CD=01 and 11; 8 cells, 3 of them don't care.

Description: A four-variable Karnaugh map with six X cells and one group of eight.

Figure 3.7.8. With don't cares, every cell where D is 1 is available to one group.

If the impossible codes were treated as 0, the map would have only five 1s and the best cover would be the 2-by-2 square in rows CD=01 and 11, columns AB=00 and 01 for A‾D\overline{A}D and the horizontal pair wrapping around the left and right edges in row CD=01, columns AB=10 and 00 for B‾ C‾D\overline{B}\,\overline{C}D. That is two terms and five variables, against one term and one variable. For the digits 0 to 9 the two circuits give the same answers.

Karnaugh map of F: columns AB, rows CD0000110111000000ABCD0001111000011110

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

  • A‾D\overline{A}D2-by-2 square: rows 01 and 11, columns 00 and 01
  • B‾ C‾D\overline{B}\,\overline{C}Dhorizontal pair, wraps left and right: row 01, columns 10 and 00 (2 cells)
Karnaugh map of F: columns AB, rows CD; cell values are 0, 1 or X for don't care
AB=00AB=01AB=11AB=10
CD=000000
CD=011101
CD=111100
CD=100000

Groups drawn:

  1. not A and D: 2-by-2 square in rows CD=01 and 11, columns AB=00 and 01; 4 cells.
  2. not B and not C and D: horizontal pair wrapping around the left and right edges in row CD=01, columns AB=10 and 00; 2 cells.

Description: A four-variable Karnaugh map with five 1s and two groups.

Figure 3.7.9. The same test with the impossible codes taken as 0.

Tags: Warm-upKarnaugh maps

Exercise 3.7.2

The map below is for a function of three inputs with three don't cares.

Karnaugh map of F: columns AB, rows CXX1001X0ABCABC
Karnaugh map of F: columns AB, rows C; cell values are 0, 1 or X for don't care
AB=00AB=01AB=11AB=10
C=0XX10
C=101X0

Description: A three-variable Karnaugh map with two 1s, three X cells and three 0s.

Figure 3.7.10. A three-variable map with two 1s and three X cells.
  1. Find a minimal sum of products when every X is taken as 0.
  2. Find a minimal sum of products when every X is taken as 1.
  3. Choose the X cells to get the smallest sum of products you can, and say which X cells your answer uses as 1.
Hint
For part 3, look for a rectangle that holds both 1s and as many X cells as it needs, and ask whether the third X is needed.
Solution

Part 1. With every X as 0, the two 1s are the cells where A, B and C are 0, 1, 1 and 1, 1, 0. They differ in two inputs, so they are not neighbors, and each needs its own term: A‾BC+ABC‾\overline{A}BC + AB\overline{C}.

Karnaugh map of F: columns AB, rows C00100100ABCABC

F = A‾BC+ABC‾\overline{A}BC + AB\overline{C}

  • A‾BC\overline{A}BCsingle cell: the row where C=1 and the column where A=0 and B=1
  • ABC‾AB\overline{C}single cell: the row where C=0 and the column where A=1 and B=1
Karnaugh map of F: columns AB, rows C; cell values are 0, 1 or X for don't care
AB=00AB=01AB=11AB=10
C=00010
C=10100

Groups drawn:

  1. not A and B and C: single cell in the row where C=1 and the column where A=0 and B=1; 1 cell.
  2. A and B and not C: single cell in the row where C=0 and the column where A=1 and B=1; 1 cell.

Description: A three-variable map with two 1s that do not touch, each outlined alone.

Figure 3.7.11. Every X taken as 0.

Part 2. With every X as 1 there are five 1s. Four of them, the cells where B is 1, form a group of four with the term BB, and the fifth, where A, B and C are all 0, has a neighbor in that group: the cell where A is 0, B is 1 and C is 0. Together they give B+A‾ C‾B + \overline{A}\,\overline{C}, two terms.

Karnaugh map of F: columns AB, rows C11100110ABCABC

F = B+A‾ C‾B + \overline{A}\,\overline{C}

  • BB2-by-2 square: the columns where B=1
  • A‾ C‾\overline{A}\,\overline{C}horizontal pair: the row where C=0 and the columns where A=0 (2 cells)
Karnaugh map of F: columns AB, rows C; cell values are 0, 1 or X for don't care
AB=00AB=01AB=11AB=10
C=01110
C=10110

Groups drawn:

  1. B: 2-by-2 square in the columns where B=1; 4 cells.
  2. not A and not C: horizontal pair in the row where C=0 and the columns where A=0; 2 cells.

Description: A three-variable map with five 1s, a group of four and a pair.

Figure 3.7.12. Every X taken as 1.

Part 3. The two 1s are both in the columns where B is 1, and the other two cells of those columns are X. Taking those two X cells as 1 makes a 2-by-2 square in the columns where B=1 with the term BB. The X cell where A, B and C are all 0 would add a 1 that needs covering, so it is left as 0. The answer BB is a single variable, and it uses two of the three X cells.

Karnaugh map of F: columns AB, rows CXX1001X0ABCABC

F = BB

  • BB2-by-2 square: the columns where B=1; 2 of the cells are don't care
Karnaugh map of F: columns AB, rows C; cell values are 0, 1 or X for don't care
AB=00AB=01AB=11AB=10
C=0XX10
C=101X0

Groups drawn:

  1. B: 2-by-2 square in the columns where B=1; 4 cells, 2 of them don't care.

Description: A three-variable map with one group of four that holds both 1s and two X cells.

Figure 3.7.13. The X cells chosen: two are used, one is not.

Tags: StandardKarnaugh maps

Exercise 3.7.3

A digit in four bits is prime, that is 2, 3, 5 or 7. The codes 1010 to 1111 are impossible. Find a minimal sum of products and say which impossible codes your groups use.

Hint
Each prime digit pairs with a neighbor, and some of the neighbors are impossible codes. Try a group of four for 2 and 3 together.
Solution

The 1s are 0010, 0011, 0101 and 0111. Two groups of four cover them, and each one reaches into the impossible codes. The 2-by-2 square wrapping around the left and right edges in rows CD=11 and 10, columns AB=10 and 00 holds 2 and 3 together with the impossible codes 1010 and 1011, and its term is B‾C\overline{B}C. The 2-by-2 square in rows CD=01 and 11, columns AB=01 and 11 holds 5 and 7 together with the impossible codes 1101 and 1111, and its term is BDBD. So the answer is B‾C+BD\overline{B}C + BD. It uses four of the six impossible codes as 1 and leaves 1100 and 1110 as 0.

Karnaugh map of F: columns AB, rows CD00X001X011XX10XXABCD0001111000011110

F = B‾C+BD\overline{B}C + BD

  • B‾C\overline{B}C2-by-2 square, wraps left and right: rows 11 and 10, columns 10 and 00; 2 of the cells are don't care
  • BDBD2-by-2 square: rows 01 and 11, columns 01 and 11; 2 of the cells are don't care
Karnaugh map of F: columns AB, rows CD; cell values are 0, 1 or X for don't care
AB=00AB=01AB=11AB=10
CD=0000X0
CD=0101X0
CD=1111XX
CD=1010XX

Groups drawn:

  1. not B and C: 2-by-2 square wrapping around the left and right edges in rows CD=11 and 10, columns AB=10 and 00; 4 cells, 2 of them don't care.
  2. B and D: 2-by-2 square in rows CD=01 and 11, columns AB=01 and 11; 4 cells, 2 of them don't care.

Description: A four-variable Karnaugh map with six X cells and two groups of four.

Figure 3.7.14. Two groups of four, each using two impossible codes.

Tags: StandardKarnaugh maps

Exercise 3.7.4

The function H is given as a product of sums, (A+B)⋅(A+C‾)⋅(B‾+C)(A + B) \cdot (A + \overline{C}) \cdot (\overline{B} + C), and G is the complement of H. Find a minimal sum of products for G.

Hint
The complement of a product of sums is a sum of products, by DeMorgan. Turn each sum into a product, and then put each product on a map.
Solution

Complementing H and applying DeMorgan twice turns the product of sums into a sum of products:

Step-by-step simplification; each line names the law used to get from the line above
ExpressionLaw used
(A+B)⋅(A+C‾)⋅(B‾+C)‾\overline{(A + B) \cdot (A + \overline{C}) \cdot (\overline{B} + C)}
=A+B‾+= \overline{A + B} + A+C‾‾+\overline{A + \overline{C}} + B‾+C‾\overline{\overline{B} + C}DeMorgan
=A‾ B‾+A‾C+BC‾= \overline{A}\,\overline{B} + \overline{A}C + B\overline{C}DeMorgan

Each product marks the cells where one of H's sums is 0. The vertical pair in the column where A=0 and B=0 is where the sum A+BA + B is 0, the horizontal pair in the row where C=1 and the columns where A=0 is where A+C‾A + \overline{C} is 0, and the horizontal pair in the row where C=0 and the columns where B=1 is where B‾+C\overline{B} + C is 0.

The first two products lie inside a larger rectangle: the 2-by-2 square in the columns where A=0 has the term A‾\overline{A} and covers both. Together with the pair for BC‾B\overline{C}, it covers every 1 of G, so a minimal sum of products is A‾+BC‾\overline{A} + B\overline{C}.

Karnaugh map of G: columns AB, rows C11101100ABCABC

G = A‾+BC‾\overline{A} + B\overline{C}

  • A‾\overline{A}2-by-2 square: the columns where A=0
  • BC‾B\overline{C}horizontal pair: the row where C=0 and the columns where B=1 (2 cells)
Karnaugh map of G: columns AB, rows C; cell values are 0, 1 or X for don't care
AB=00AB=01AB=11AB=10
C=01110
C=11100

Groups drawn:

  1. not A: 2-by-2 square in the columns where A=0; 4 cells.
  2. B and not C: horizontal pair in the row where C=0 and the columns where B=1; 2 cells.

Description: A three-variable map with a group of four and a pair that overlap in one cell.

Figure 3.7.15. The map of G with its two groups.

Tags: ChallengeKarnaugh mapsBoolean algebra