Boolean Identities
Some rules (and tips) on building truth tables for Boolean expressions:
- The few leftmost columns of your table should be the simple variables the expression contains. For example, if your expression has the variables $x$, $y$, and $z$ in it, your table should start with 3 columns, one for each of $x$, $y$, and $z$.
- The number of rows that your table will have can be calculated as follows: $2^{(\text{amount of variables})}$. For example, if your expression has the variables $x$, $y$, and $z$ in it, the truth table will feature $2^3 = 8$ rows of bits.
- To make the evaluation of expressions gradual and easy, include additional columns in your table that correspond to intermediate expressions that build up the final expression. For example, if your expression is $(x + y)'$, don't include just the columns $x$, $y$, and then right away $(x + y)'$. Instead, include also a column for the OR operation $x + y$, which is an intermediate operation that you perform before applying the negation operation.
- The 'variables' $1$ and $0$ are special: while variables like $x$ and $y$ vary (each of them can be either $0$ or $1$,) $1$ and $0$ are actually constants. If you need to include a column for $1$, all the bits across this column will be $1$s. Similarly, if you need to include a column in the truth table for $0$, all the bits across this column will be $0$s.