A group on a karnaugh map is a set of cells you circle together because they can be written as one product term. Every group is an implicant of the function.
A valid group:
- holds only 1s and don't-cares, never a 0
- has 2ᵏ cells: 1, 2, 4, 8 or 16
- is a rectangle, possibly wrapped across an edge (see wrap around adjacency)
Why it works: a pair of adjacent cells differ in one variable, so = removes that variable. A group of 4 is two adjacent pairs, which merge again and remove a second variable. So a group of 2ᵏ cells removes k variables. In an n-variable map its term has n − k literals.
To read a group, compare the row and column labels it covers. A variable that stays 0 across the whole group appears primed; one that stays 1 appears plain; one that changes is dropped.
Good groups are as large as possible, which makes them prime implicants. A minimal answer uses as few of them as possible. Groups may overlap.
| AB\CD | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 00 | 0m0 | 0m1 | 1m3 | 1m2 |
| 01 | 0m4 | 0m5 | 0m7 | 0m6 |
| 11 | 0m12 | 0m13 | 0m15 | 0m14 |
| 10 | 0m8 | 0m9 | 1m11 | 1m10 |