CLD L5
CLD L5
Boolean Algebra
SHIVAN SHKUR
LECTURER
Boolean Operations and Expressions
⦿ Addition ⦿ Multiplication
0*0=0
0+0=0
0*1=0
0+1=1
1*0=0
1+0=1
1*1 =1
1+1=1
Law and Rule of Boolean Algebra
⦿ Commutative Laws
⦿ Associative Laws
⦿ Distributive Law
Law of Boolean Algebra
⦿ Distributive Law:
A(B + C) = AB + AC
Rule of Boolean Algebra
Rule of Boolean Algebra
⦿ Rule 1 A+ 0 =A OR Truth Table
⦿ Rule 2 A+ 1 = 1
⦿ Rule 5 A+A=A
⦿ Rule 6 A+A= 1
Rule of Boolean Algebra
⦿ Rule 7 A.A=A
⦿ Rule 8 A.A= 0
⦿ Rule 9 A=A
Rule of Boolean Algebra
⦿ Rule 10 A + AB = A
=A Rule 2: (1 + B) = 1
Rule of Boolean Algebra
⦿ Rule 11 A + AB = A + B AND Truth Table OR Truth Table
= A + BC
Demorgan’s Theorem
⦿ Theorem 1
XY = X + Y
⦿ Theorem 2
X + Y = XY
Remember:
“Break the bar,
change the sign”
Demorgan’s Theorem
⦿ Theorem 1 XY = X + Y
Demorgan’s Theorem
⦿ Theorem 2 X + Y = XY
Demorgan’s Theorem
⦿ Ex 1: Apply Demorgan’s theorem to the following expressions:
X+Y+Z =X Y Z
Demorgan’s Theorem
X+Y+Z
Sol.:
X+Y+Z = X Y Z =XYZ
Demorgan’s Theorem
= (A + B) C + A (B + C)
Boolean Algebra (Examples)
= AB + C
Boolean Algebra (Examples)
⦿ Ex 2: Simplify the expression
Sol.
Boolean Algebra (Examples)
⦿ Ex 3: If AB + AB = C show that AC + AC = B
= 0 +0 +AB+0+0 + AB
= AB+ AB = B(A+ A)
= B
Standard form of Boolean Expressions
⦿A Boolean function expressed algebraically can be expressed in a variety
of ways.
Note: SOP can have the term ABC but not ABC
Sum of product (SOP) form
⦿ AND/OR implementation of a SOP Expression
EX: X=AB + BCD + AC
Sum of product (SOP) form
EX: A(B+CD)
A(B+CD)=AB+ACD
Conversion Of A General Expression To SOP Form
⦿ Examples: convert the following forms into SOP form.
b) (A + B) (B + C + D) = AB+AC+AD+BB+BC+BD
= AB+AC+AD+B+BC+BD
⦿It has the value 1 for that combination and 0 for all others.
⦿ Ex:
The standard SOP Form
⦿ Method:
(A+B+C)(C+D+E)(B+C)
X(X+Y+Z)(X+Z)
Note: POS can have the term (A+B+C ) but not (A+B+C)
Product of Sum (POS) Form
EX:X=(A+B)(B+C+D)(A+C)
Maxterms
⦿Maxterm: A sum term that contains all the variables in
complemented or uncomplemented form.
-It is possible to formulate 2n distinct Maxterms for n variables.
⦿ Each Maxterm is a logical sum of n variables.
⦿ Each variable is complemented if the corresponding binary bit is
1,and uncomplemented if the corresponding binary bit is 0.
⦿ Thesymbol of the Maxterm is Mi
Where i is the decimal equivalent of the binary combination
corresponding to the Maxterm.
Maxterms
Ex: M3 = X + Y + Z = X Y Z = m3
Maxterms
⦿ Ex:
Truth Table Notation for Minterms and Maxterms
⦿ Method:
Step 3: Repeat step 1 until all resulting sum terms contain all
variables in the domain.
Converting sum term to standard POS Form
⦿ Standard Sum-Of-Products:
The minterms included are those mi such that F( ) = 1 in
row i of the truth table for F( ).
⦿ Standard Product-Of-Sums:
The maxterms included are those Mi such that F( ) = 0 in
row i of the truth table for F( ).
Standard Forms of Boolean Expressions
⦿ Observe that: mi = Mi
Shorthand:
⦿ Replace∑ with ∏ (or vice versa) and replace those i’s that
appeared in the original form with those that do not.
Converting standard SOP to standard POS Form
⦿ Method
Step 1: Determine the binary numbers that represent the product term
Step 3: write the equivalent sum term for each binary number of step 2.
Converting standard SOP to Standard POS Form
Sol:
Step 1: Binary numbers of the product terms
Step 3: The equivalent POS (binary no.s that make sum term 0)
Converting SOP Expression to truth table Format
⦿Ex: Develop a truth table for the standard SOP expression
Sol:
The resulting standard POS:
Questions