Lecture 05 - Boolean Algebra
Lecture 05 - Boolean Algebra
Algebra
Boolean Algebra
The three operations in Boolean algebra that we will use most are:
• Complementation
• Boolean sum
• Boolean product
Complement
1.1=1 0.1=0
1.0=0 0.0=0
Boolean Sum
1+1=1 0+1=1
1+0=1 0+0=0
Example 01
1 · 0 + (0 + 1) = 0 + 1ത
=0+0
=0
Example 02
Translate 1 · 0 + (𝟎 + 𝟏) = 0 into a logical equivalence.
We obtain a logical equivalence when we translate each 1 into a T, each
0 into an F.
Each;
➢ Boolean sum into a Disjunction
➢ Boolean product into a Conjunction
➢ Complementation into a Negation.
1 · 0 + (𝟎 + 𝟏) = 0
(T ∧ F) + ∼ ( F ∨ T) ≣ F
Example 03
(T ∧ T) ∨ ∼F ≡ T
(1·1)+𝟎
ഥ =1
Exercises
1. Find the values of these expressions
a) 1. 0ത e) (0 + 1)
b) 1 + 1ത f) 1 + (1.0)
c) 0.0ത g) 0 . (1 + 1ത )
d) 1 + 0ത
2. Find the values, if any, of the Boolean variable x that satisfy these
equations.
a) 𝑥 · 1 = 0 c) 𝑥 · 1 = 𝑥
b) x + x = 0 d) 𝑥 · 𝑥ҧ = 𝑥
Boolean Identities
Boolean Identities
Example 01
A.(A + B) = A.(A + B)
= A.A + A.B Distributive Law
}
= A + A.B Idempotent Law
= A.(1 + B)
}
= A. 1
=A
Example 03
Simplify the expression (A + B)(A + C) using Boolean identities.
(A + B)(A + C) = (A + B)(A + C)
= A (A + C) + B(A + C) Distributive Law
= A.A + A.C + B.A + B.C
} Distributive Law
= A + A.C + A.B + B.C
}}
= A + A.B + B.C Absorption Law
= A + B.C Absorption Law
Exercise
Simplify the following Boolean expressions using Boolean identities.
i. A + (𝐴ഥ 𝐵)
ii. AB(𝐵ഥ 𝐶 + 𝐴𝐶)
iii. A + B A + C + AC
iv. (𝐴 + 𝐵 + 𝐶)𝐷
v. 𝐴𝐵𝐶 + 𝐷𝐸𝐹
vi. 𝐴 𝐵ഥ C + 𝐴 + 𝐵 + 𝐶 + 𝐴 𝐵ഥ 𝐶ഥ 𝐷
vii. 𝐴𝐵ത + 𝐶 𝐷
ഥ + 𝐸𝐹
Sum-of-Products
• A sum-of-products (SOP) expression is a boolean expression in a
specific format.
• The term sum-of-products comes from the expression’s form: a sum
(OR) of one or more products (AND).
Eg:
Product-of-Sums
• The Product-of-Sum is a form of Boolean algebra where various
sum(OR) terms are combined together through product(AND).
Eg:
Boolean Function
• Boolean functions can be represented using expressions made up from
variables and Boolean operations.
• Eg: 𝑓 𝑥, 𝑦 = 𝑥𝑦ത
Example:
0 1
Duality Principles Examples
Expression Dual
1.0 = 0 0+1=1
1+0=1 0.1 = 0
A.0 = 0 A+1=1
A.A = 0 A+A=1
A.(B.C) = (A.B).C A + (B + C) = (A + B) + C
Exercise
i. 1+0=1
ii. A.1 = 0
iii. A.(A + B) = A
iv. AB + C + BCA = 0
v. A•B+C = A•B + A•C