Chapter 6
Chapter 6
Computer Science
6.1 Introduction to Boolean Algebra
Boolean Algebra is a mathematical system used in digital circuits and computer logic. It is
based on binary values 0 (False) and 1 (True).
AND Gate (A • B)
A B Output (A • B)
0 0 0
0 1 0
1 0 0
1 1 1
OR Gate (A + B)
A B Output (A + B)
0 0 0
0 1 1
1 0 1
A B Output (A + B)
1 1 1
A Output (¬A)
0 1
1 0
Note: NAND and NOR are Universal Gates because they can be used to create any other
gate.
Law Expression
Idempotent Law A + A = A, A • A = A
Identity Law A + 0 = A, A • 1 = A
Null Law A + 1 = 1, A • 0 = 0
Complement Law A + ¬A = 1, A • ¬A = 0
Operation Expression
For OR A + B = B + A
For AND A • B = B • A
Operation Expression
For OR (A + B) + C = A + (B + C)
For AND (A • B) • C = A • (B • C)
Expression
A • (B + C) = (A • B) + (A • C)
A + (B • C) = (A + B) • (A + C)
Theorem Expression
First ¬(A • B) = ¬A + ¬B
Second ¬(A + B) = ¬A • ¬B
Expression: A • (A + B)
Simplification:
1. A • (A + B)
2. = (A • A) + (A • B) [Using Distributive Law]
3. = A + (A • B) [Using Idempotent Law: A • A = A]
4. = A [Using Absorption Law: A + A • B = A]
Expression: ¬(A + B)
Simplification:
1. ¬(A + B)
2. = ¬A • ¬B [Using De Morgan’s Second Theorem]
Example Circuit
2-Variable K-Map
AB 0 1
0 01
1 11
Group adjacent 1s to simplify the expression.
Example: F(A, B) = A + B
Summary of Chapter 6
Boolean Algebra is used in digital circuits.
Basic Gates: AND, OR, NOT.
Universal Gates: NAND, NOR.
Boolean Laws help in simplification.
De Morgan’s Theorems help in complementing expressions.
Logic Circuits are designed using Boolean expressions.
K-Map helps in easy simplification of Boolean functions.