The layout of a K-map is the choice of which variables label the rows, which label the columns, and in what order. This course always uses:
- 2 variables: rows A, columns B
- 3 variables: rows A, columns BC
- 4 variables: rows AB, columns CD
- both axes in gray code order: 00, 01, 11, 10
- A as the most significant bit, so a cell's minterm number is its row bits followed by its column bits
Other books and instructors may:
- swap the axes, such as BC down the side and A across the top
- put different variables on each axis, such as CD on the rows and AB on the columns
- mark edges with bars showing where a variable is 1, instead of bit labels
- print the minterm number in a corner of each cell
None of this changes the answer. Touching cells still differ in one variable, and every group still reads to the same term. Only the position of each minterm moves.
To read any layout safely, read the row and column labels for a cell, then rewrite the bits in the order A, B, C, D. That binary number is the minterm. Never find a cell by counting along the grid.
| AB\CD | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 00 | 0m0 | 0m1 | 0m3 | 0m2 |
| 01 | 0m4 | 0m5 | 0m7 | 0m6 |
| 11 | 1m12 | 0m13 | 0m15 | 0m14 |
| 10 | 0m8 | 0m9 | 0m11 | 1m10 |