Lecture 3
Lecture 3
Lecture 3
26 Aug 2021
A field is a set of elements which satisfy all above rules/properties. Example: A field of real numbers.
Postulates of Boolean Algebra
(a.k.a. Huntington Postulates)
Boolean algebra is an algebraic structure defined by a set B, together with two binary operator +
and . , provided following conditions are satisfied:
1. B is closed with respect to + and . operators
2. The + identity is 0 and the . identity is 1
3. Commutative property is satisfied for + and . operators
4. Distributive property is satisfied for + and . operators
4. For every element x ∈ B, there exists an element x’ ∈ B (called the complement of x) such that
(a) x + x’ =1 and (b) x . x’ = 0
5. There exists at least two elements x,y ∈ B such that x ≠ y
Although, associative law is not included in the postulates, it holds true and can be derived from other postulates
Differences with ordinary algebra
Boolean Algebra Ordinary Algebra
Distributivity of + over . : a + (b.c) = (a+b). (a+c) Not valid
No subtraction or division operations available Have subtraction (-) and division (/) operations
Have complements described in postulate 5 Not available
(a) x + x’ =1 and (b) x . x’ = 0
Two valued Boolean algebra
Defined on a set of two elements B ={0,1} with following rules for + and . Operators:
Theorem 3
A (A’)’ = A (NOT)
Homework:
0 (0’)’ = We also represent Justify Theorem 4
1 (1’)’ = complement as 𝐴ҧ with truth table
Example: DeMorgan’s theorem Can easily validate
with truth table
Theorem: 𝐴. 𝐵 = 𝐴ҧ + 𝐵ത and 𝐴 + 𝐵 = 𝐴ഥ . 𝐵ത
Example:
Given F = 𝐴ҧ𝐵ത 𝐶ҧ + 𝐴ҧ𝐵𝐶 ҧ
ത + 𝐴𝐵𝐶, ത
find 𝐹? Write the same expression F in various forms:
Solution: 𝐹ത = 𝐴ҧ𝐵ത 𝐶ҧ + 𝐴ҧ𝐵𝐶 ҧ
ത + 𝐴𝐵𝐶
F = 𝐴ҧ𝐵ത 𝐶ҧ + 𝐴ҧ𝐵𝐶 ҧ
ത + 𝐴𝐵𝐶
= 𝐴ҧ𝐵ത 𝐶ҧ . 𝐴ҧ𝐵𝐶 ҧ
ത . 𝐴𝐵𝐶
(From theorem statement 2:
= 𝐴ҧ𝐵ത 𝐶ҧ . 𝐴ҧ𝐵𝐶 ҧ
ത . 𝐴𝐵𝐶 A+B = 𝐴ഥ . 𝐵)
ത
= 𝐴 + 𝐵 + 𝐶 . 𝐴 + 𝐵 + 𝐶ҧ . (A + 𝐵ത + 𝐶)ҧ
= 𝐴 + 𝐵 + 𝐶 . 𝐴 + 𝐵 + 𝐶ҧ . A + 𝐵ത + 𝐶ҧ
= 𝐴 + 𝐵 + 𝐶 + 𝐴 + 𝐵 + 𝐶ҧ + A + 𝐵ത + 𝐶ҧ
= 𝐴ҧ𝐵ത 𝐶ҧ + 𝐴ҧ𝐵𝐶 ҧ
ത + 𝐴𝐵𝐶
Absorption Theorem
Statement: A + AB = A
Proof: LHS = A+AB
= A . (1+B)
= A.1 = A
Homework:
Justify A’+AB = A’+B with truth tables
Operator precedence order
Anything within the parenthesis must be evaluated first
Then evaluate the NOT operator a.k.a. complement or prime
Then evaluate the AND operator
Then evaluate the OR operator
Example 1
Simplify the following
F = A’BC’ + A B’C’ + A B’C + ABC’ + ABC
= A’BC’ + AB’ (C’+C) + AB (C’+C)
= A’BC’ + AB’ . 1 + AB .1
= A’BC’ + A(B’+B)
= A’BC’ + A
= A+ A’BC’ (Now remember the identity: A+A’B = A + B)
= A + BC’
Example 2
Write Truth table for F = A+BC’
A B C C’ BC’ F = A+ BC’
0 0 0 1 0 0
0 0 1 0 0 0
0 1 0 1 1 1
0 1 1 0 0 0
1 0 0 1 0 1
1 0 1 0 0 1
1 1 0 1 1 1
1 1 1 0 0 1