01 - Review of Boolean Algebra
01 - Review of Boolean Algebra
Review of Boolean
Algebra
Outline Claude Shannon
(1916 - 2001)
Representation of
Boolean Algebra
Boolean Expressions Boolean Operators
Defined
and Functions
Proving &
Basic
Simplification of
Logic Gates Postulates/Axioms,
Boolean expressions
Theorems
and functions
Boolean Algebra Defined
What is Boolean
algebra?
Boolean expression
An algebraic statement of Boolean variables
or literals and operators
A+B
A • B (AB)
A’ or A
Boolean function
Maps inputs from the set {0,1} to the set
{0,1}
A function from B to Bn is called a Boolean
function of degree n
F(A,B) = AB + (A’B + B’)
Basic forms in which a Boolean
algebraic expression can be written
1. Sum of Product( SOP) form
2. Product of Sum (POS form)
Representation of Boolean
Expression and Function
Sum of Products (SOP) form
It is an expression that results from two or
more product terms, which are summed by
Boolean addition
Example: AB + BC
F(A,B) = AB’ + A’B’
Representation of Boolean
Expression and Function
Product of Sums (POS) form
It is an expression that results from two or
more sum terms, which are multiplied by
Boolean multiplication.
Example: (A+B)(A+C)
F(A,B,C) = (A+C’) (A’+B’+ C)
Representation of Boolean
Expression and Function
Exercises: Inspect each of these Boolean expressions,
and determine whether each one is a sum of
products, or a product of sums:
(B+C’+D)(A’+B)
AB’C’+A’BC
(X+Y’+Z’)(Y’+Z)(X’+Y)
M’N’O’+MNO’+MN’O
Representation of Boolean
Expression and Function
Truth table is a table that contains all possible values
of logical variables/statements in a Boolean
expression.
Truth Table
Boolean Operators
Truth
table for the Boolean NOT
operator
A A’
0 1
1 0
Boolean Operators
Truth
table for the Boolean AND
operator
A B A⋅B = AB
0 0 0
0 1 0
1 0 0
1 1 1
Boolean Operators
Truth
table for the Boolean OR
operator
A B A+B
0 0 0
0 1 1
1 0 1
1 1 1
Boolean Operators
The truth table for AB + C is as follows:
A B C AB AB + C
0 0 0 0 0
0 0 1 0 1
0 1 0 0 0
0 1 1 0 1
1 0 0 0 0
1 0 1 0 1
1 1 0 1 1
1 1 1 1 1
Exercise
Gates
The basic element of circuits are called
gates
Logic
These circuits that have no
Gates
memory capabilities are called
(cont.) combinational circuits or gating
networks
X'
X
Logic Gates
(cont.)
X
Y
X+Y OR Gate: it accepts
as input values of 2
or more Boolean
variables.
The output is the
Boolean sum of their
values
The output is always
1 if one of the inputs
is 1.
Logic Gates
(cont.)
X
AND gate: The inputs to this XY
gate are the values of two or Y
more Boolean variables.
x1
x2 x1 + x2 + …+ xn
…
xn
21
Combinations of Gates
X’
X
Y X’Y
X XY
Y
XY + X’Y
X’
X’Y
1. (XY + Y’) X’
2. X’ ( Y + Z’)’ + YZ
3. (XZ’ + Y + Y’Z) (X’Y’ + Z)
Axioms, Involution/Double
Complementation
Theorems in
• (A’)’ = A
Boolean
Algebra Commutative Law
• A+B=B+A
• A • B = B • A or AB = BA
Associate Law
• (A + B) + C = A + (B + C)
Basic • (A B) C = A (B C)
Boolean
Absorption (Redundance) Law
Algebra
• A+AB=A
• A (A + B) = A
Basic
Postulates
De Morgan's Theorem
or Axioms,
• (A + B)’ = A’B’
Theorems • (AB)’= A’+ B’
in Boolean
Algebra
Summary
1) A+0 =A
2) A+1= 1 11) A•B=B•A
3) A+A=A 12) (A + B) + C = A + (B + C)
4) A +A’ = 1 13) (A B) C = A (B C)
5) A•1=A 14) A + B C = (A + B) (A + C)
6) A•0= 0 15) A (B + C) = AB + AC
7) A•A=A 16) A+AB=A
8) A • A’ = 0 17) A (A + B) = A
9) (A’)’ = A 18) (A + B)’ = A’B’
10) A+B=B+A 19) (AB)’= A’+ B’
Proving theorems
Example 2:
Prove the absorption theorem X + XY = X
Solution:
X + XY = X
X(1+Y) =X #5 #15
X (1) = X #2
X = X #5
Proving theorems
Example 3:
Prove that the expression
XY+ X’Y + Y’Z = Y + Z
Solution:
XY+ X’Y + Y’Z = Y + Z
Y (X + X’) + Y’Z = Y + Z #15
Y ( 1) + Y’Z = Y + Z #4
Y + Y’Z = Y + Z #5
(Y + Y’) (Y + Z) = Y + Z #14
1 ( Y + Z) = Y + Z #4
Y+Z = Y+Z #5 #15
Proving theorems
Exercise:
A. Prove algebraically the following Boolean
expressions.
1. AB’CD’ + AB’CD + ABCD’ + ABCD = AC
2. A'BC + AB'C' + AB'C + ABC' + ABC = A + BC
3. (X+Y’+Z’)(X’+Y’+Z’) = Y’ + Z’
X Y Z F Maxterm Focus
0 0 0 1 on the
0 0 1 0 M1 = X+Y+Z’ ‘0’
0 1 0 0 M2 = X+Y’+Z entries
0 1 1 1
1 0 0 1
1 0 1 0 M5 = X’+Y+Z’
1 1 0 1
1 1 1 1