A Boolean expression combines variables, the constants 0 and 1, and operators into a formula whose value is always 0 or 1. Examples: , , .
In this course:
- AND is written by putting letters side by side,
AB, or with a dot,A·B. - OR is written
A + B. - NOT is a bar over what it covers, typed as a prime:
A'or(AB)'.
Operators follow operator precedence: NOT, then AND, then OR, with brackets and long bars overriding.
An expression and a circuit are two views of the same thing. Each operator is a gate and each variable is an input wire, so is a NOT, an AND and an OR.
Many different expressions describe the same boolean function: and A behave identically. The whole point of boolean simplification is to find the cheapest expression for a given function, using the laws of boolean algebra.
| 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 |
| 0 | 1 | 0 | 1 |
| 0 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 0 |
| 1 | 1 | 1 | 1 |