# 8.04: Making a Venn Diagram Look Like a Karnaugh Map

- Page ID
- 948

Starting with circle ** A** in a rectangular

**in figure (a) below, we morph a Venn diagram into almost a Karnaugh map.**

**A’ universe**We expand circle ** A** at (b) and (c), conform to the rectangular

**at (d), and change**

**A’ universe****to a rectangle at (e). Anything left outside of**

**A****is**

**A****. We assign a rectangle to**

**A’****at (f). Also, we do not use shading in Karnaugh maps. What we have so far resembles a 1-variable Karnaugh map, but is of little utility. We need multiple variables.**

**A’**Figure (a) above is the same as the previous Venn diagram showing ** A** and

**above except that the labels**

**A’****and**

**A****are above the diagram instead of inside the respective regions. Imagine that we have go through a process similar to figures (a-f) to get a “square Venn diagram” for**

**A’****and**

**B****as we show in middle figure (b). We will now superimpose the diagrams in Figures (a) and (b) to get the result at (c), just like we have been doing for Venn diagrams. The reason we do this is so that we may observe that which may be common to two overlapping regions—say where**

**B’****overlaps**

**A****. The lower right cell in figure (c) corresponds to**

**B****where**

**AB****overlaps**

**A****.**

**B**We don’t waste time drawing a Karnaugh map like (c) above, sketching a simplified version as above left instead. The column of two cells under ** A’** is understood to be associated with

**, and the heading**

**A’****is associated with the column of cells under it. The row headed by**

**A****is associated with the cells to the right of it. In a similar manner**

**B’****is associated with the cells to the right of it. For the sake of simplicity, we do not delineate the various regions as clearly as with Venn diagrams.**

**B**The Karnaugh map above right is an alternate form used in most texts. The names of the variables are listed next to the diagonal line. The ** A** above the diagonal indicates that the variable

**(and**

**A****) is assigned to the columns. The**

**A’****is a substitute for**

**0****, and the**

**A’****substitutes for**

**1****. The**

**A****below the diagonal is associated with the rows:**

**B****for**

**0****, and**

**B’****for**

**1**

**B****Example:**

Mark the cell corresponding to the Boolean expression ** AB** in the Karnaugh map above with a

**1****Solution:**

Shade or circle the region corresponding to ** A**. Then, shade or enclose the region corresponding to

**. The overlap of the two regions is**

**B****. Place a**

**AB****in this cell. We do not necessarily enclose the**

**1****and**

**A****regions as at above left.**

**B**We develop a 3-variable Karnaugh map above, starting with Venn diagram like regions. The universe (inside the black rectangle) is split into two narrow narrow rectangular regions for ** A’** and

**. The variables**

**A****and**

**B’****divide the universe into two square regions.**

**B****occupies a square region in the middle of the rectangle, with**

**C****split into two vertical rectangles on each side of the**

**C’****square.**

**C**In the final figure, we superimpose all three variables, attempting to clearly label the various regions. The regions are less obvious without color printing, more obvious when compared to the other three figures. This 3-variable *K-Map* (Karnaugh map) has 2^{3} = 8 *cells*, the small squares within the map. Each individual cell is uniquely identified by the three Boolean Variables (** A, B, C**). For example,

**uniquely selects the lower right most cell(*),**

**ABC’****selects the upper left most cell (x).**

**A’B’C’**We don’t normally label the Karnaugh map as shown above left. Though this figure clearly shows map coverage by single boolean variables of a 4-cell region. Karnaugh maps are labeled like the illustration at right. Each cell is still uniquely identified by a 3-variable *product term*, a Boolean ** AND** expression. Take, for example,

**following the**

**ABC’****row across to the right and the**

**A****column down, both intersecting at the lower right cell**

**BC’****. See (*) above figure.**

**ABC’**The above two different forms of a 3-variable Karnaugh map are equivalent, and is the final form that it takes. The version at right is a bit easier to use, since we do not have to write down so many boolean alphabetic headers and complement bars, just ** 1**s and

**s Use the form of map on the right and look for the the one at left in some texts. The column headers on the left**

**0****are equivalent to**

**B’C’, B’C, BC, BC’****on the right. The row headers**

**00, 01, 11, 10****are equivalent to**

**A, A’****on the right map.**

**0, 1**