Each truth table consists of 2n cells, where n is the number of inputs (logic variables).
Two Inputs (4 cells)
The row and column assignments for two or more variables are arranged so that adjacent terms change by only one bit. That is, the possibilities of AB are considered as 00, 01, 11, and 10 in turn, rather than 00, 01, 10, and 11 as often is written sequence in ordinary truth tables. (In going from 01 to 10, both bits would be changed.) This type of construction facilitates identification of supercells that are used to simplify gate combinations for realizing the desired truth table.
Three Inputs (8 cells)
Four Inputs (16 cells)