Boolean Algebra, formulated by English mathematician George Boole, is a two-valued algebraic system dealing with binary variables ($1 = \text{True}$, $0 = \text{False}$) and logical operations.
| Logic Gate |
Boolean Operator |
Boolean Expression |
Output Behavior |
| AND Gate |
Logical Conjunction ($\cdot$) |
$Y = A \cdot B$ |
Output is 1 ONLY IF both inputs $A$ and $B$ are 1. |
| OR Gate |
Logical Disjunction ($+$) |
$Y = A + B$ |
Output is 1 IF AT LEAST ONE input is 1; 0 only if both are 0. |
| NOT Gate (Inverter) |
Logical Inversion ($\overline{A}$) |
$Y = \overline{A}$ |
Single input; inverts $1 \to 0$ and $0 \to 1$. |
| NAND Gate (Universal) |
NOT-AND |
$Y = \overline{A \cdot B}$ |
Opposite of AND; output is 0 only if both inputs are 1. |
| NOR Gate (Universal) |
NOT-OR |
$Y = \overline{A + B}$ |
Opposite of OR; output is 1 only if both inputs are 0. |
| XOR Gate (Exclusive OR) |
Exclusive OR ($\oplus$) |
$Y = A\overline{B} + \overline{A}B$ |
Output is 1 IF INPUTS ARE DIFFERENT (one 0 and one 1); 0 if identical. |
De Morgan’s Laws:
1. First Law: $\overline{A + B} = \overline{A} \cdot \overline{B}$ (The complement of a sum is equal to the product of individual complements).
2. Second Law: $\overline{A \cdot B} = \overline{A} + \overline{B}$ (The complement of a product is equal to the sum of individual complements).