Comprehensive Guide for Computer Science Competitive Exams
Boolean algebra is a branch of algebra that deals with binary variables and logical operations. It was developed by George Boole in 1854 and forms the basis for digital circuit design and computer logic.
Output is 1 only if all inputs are 1
| A | B | A · B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
Output is 1 if at least one input is 1
| A | B | A + B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
Output is the complement of the input
| A | ¬A |
|---|---|
| 0 | 1 |
| 1 | 0 |
Minterm: Product term containing all variables in complemented or uncomplemented form
Maxterm: Sum term containing all variables in complemented or uncomplemented form
K-maps provide a visual method for simplifying Boolean expressions:
Group adjacent 1s to get simplified expression: F(A,B) = A + B
Logic gates are physical devices that implement Boolean functions:
| Gate | Symbol | Boolean Expression | Truth Table |
|---|---|---|---|
| AND | → | Y = A·B | Output 1 only if all inputs 1 |
| OR | → | Y = A+B | Output 1 if any input is 1 |
| NOT | → | Y = A' | Output is complement of input |
| NAND | → | Y = (A·B)' | Complement of AND |
| NOR | → | Y = (A+B)' | Complement of OR |
| XOR | → | Y = A⊕B | Output 1 if inputs are different |
| XNOR | → | Y = (A⊕B)' | Output 1 if inputs are same |
Solution: Group terms to get F = A'C + AC = C