Lecture 2
Lecture 2
1
Algebras
• What is an algebra?
– Mathematical system consisting of
• Set of elements, Set of operators, Axioms or postulates
• Terminology:
• Literal: A variable or its complement. We define a literal to be a single
variable within a term, in complemented or uncomplemented form
– Product term: literals connected by •
– Sum term: literals connected by +
1.Closure (+ and‧)
2.The identity elements
(1) +: 0
(2) . : 1
May 21, 2025 8
Postulates of Two-Valued Boolean
Algebra
3. The commutative laws
4. The distributive laws
y+ x. x. (x . y)+
x y z x.z
z (y+z) y (x . z)
0 0 0 0 0 0 0 0
0 0 1 1 0 0 0 0
0 1 0 1 0 0 0 0
0 1 1 1 0 0 0 0
1 0 0 0 0 0 0 0
1 0 1 1 1 0 1 1
1 1 0 1 1 1 0 1
1 1 1 1 1 1 1 1
May 21, 2025 9
Postulates of Two-Valued Boolean
Algebra
5. Complement
– x+x'=1 → 0+0'=0+1=1; 1+1'=1+0=1
– x . x'=0 → 0 . 0'=0 . 1=0; 1 . 1'=1 . 0=0
6. Has two distinct elements 1 and 0, with 0 ≠ 1
• Note
– A set of two elements
– + : OR operation; . : AND operation
– A complement operator: NOT operation
– Binary logic is a two-valued Boolean algebra
May 21, 2025 10
Duality
• The principle of duality says that if an expression is valid in
Boolean algebra, the dual of that expression is also valid.
• To form the dual of an expression, replace all + operators
with . operators, all . operators with + operators, all ones
with zeros, and all zeros with ones.
• Form the dual of the expression
a + (bc) = (a + b)(a + c)
• Following the replacement rules…
a(b + c) = ab + ac
• Take care not to alter the location of the parentheses if they
are present.
x y xy x+x
y
0 0 0 0
0 1 0 0
1 0 0 1
1 1 1 1
May 21, 2025 17
DeMorgan’s Theorem
• Theorem 5(a): (x + y)’ = x’y’
• Theorem 5(b): (xy)’ = x’ + y’
• By means of truth table
1. xy + x’z + yz = xy + x’z
2. (x+y)•(x’+z)•(y+z) = (x+y)•(x’+z) -- (dual)
• Proof:
xy + x’z + yz = xy + x’z + (x+x’)yz
= xy + x’z + xyz + x’yz
= (xy + xyz) + (x’z + x’zy)
= xy + x’z
QED (2 true by duality).
x y z F1 F2 F3 F4
0 0 0 0 0 0 0
0 0 1 0 1 1 1
0 1 0 0 0 0 0
0 1 1 0 0 1 1
1 0 0 0 1 1 1
1 0 1 0 1 1 1
1 1 0 1 1 0 0
1 1 1 0 1 0 0
• Two Boolean expressions may specify the same function
– F3 = F4
May 21, 2025 22
Boolean Functions
• Implementation with logic gates
– F4 is more economical
F2 = x + y'z
F4 = x y' + x' z
• Example 2.2
• Multi-level implementation