Upload
see-kay-why
View
255
Download
2
Embed Size (px)
DESCRIPTION
Citation preview
Apr 10, 2023
Lecturer Name [email protected]
Contact Number
IT2001PAEngineering Essentials (2/2)
Chapter 7 - Boolean Algebra
2
Chapter 7 - Boolean Algebra
IT2001PA Engineering Essentials (2/2)
Lesson Objectives
Upon completion of this topic, you should be able to: State the rules and functions of Boolean algebra.
Chapter 7 - Boolean Algebra
IT2001PA Engineering Essentials (2/2)
Specific Objectives
Students should be able to : State the function of Boolean algebra. State the 9 equalities of Boolean algebra. State the Commutative Law. State the Associative Law. State the Distributive Law.
4
Chapter 7 - Boolean Algebra
IT2001PA Engineering Essentials (2/2)
Introduction
Boolean Algebra is a set of algebraic rules, named after mathematician George Boole, in which TRUE and FALSE are equated to ‘0’ and ‘1’.
Boolean algebra includes a series of operators (AND, OR, NOT, NAND (NOT AND), NOR, and XOR (exclusive OR)), which can be used to manipulate TRUE and FALSE values.
It is the basis of computer logic because the truth values can be directly associated with bits.
5
Chapter 7 - Boolean Algebra
IT2001PA Engineering Essentials (2/2)
Boolean Algebra Laws
Frequently, a Boolean expression is not in its simplest form.
Boolean expressions can be simplified, but we need identities or laws that apply to Boolean algebra instead of regular algebra.
These identities can be applied to single Boolean variables as well as Boolean expressions.
6
Chapter 7 - Boolean Algebra
IT2001PA Engineering Essentials (2/2)
A(B+C) = A*B + A*C
(A+B)*(C+D) = A*C + A*D + B*C + B*D
Commutative LawA + B = B + A
A*B = B*AAssociative Law
A+B+C = A+(B+C) = (A+B)+C = B+(A+C)
A*B*C = A*(B*C) = (A*B)*C = B*(A*C)
Distributive Law
7
Chapter 7 - Boolean Algebra
IT2001PA Engineering Essentials (2/2)
Commutative Law The commutative law allows the change in position
(reordering) of an ANDed or ORed variable.
8
Chapter 7 - Boolean Algebra
IT2001PA Engineering Essentials (2/2)
Associative Law The Associative Law allows the regrouping of
variables.
9
Chapter 7 - Boolean Algebra
IT2001PA Engineering Essentials (2/2)
Distributive Law
The Distributive Law shows how OR distributes over AND and vice versa.
10
Chapter 7 - Boolean Algebra
IT2001PA Engineering Essentials (2/2)
Boolean Algebra Theorems
Boolean theorems can help to simplify logic expression and logic circuits.
11
Chapter 7 - Boolean Algebra
IT2001PA Engineering Essentials (2/2)
Boolean Algebra Equalities or Identities
(j) A + AB = A + B
A + AB = A + B
The variable A may represent an expression containing more than one variable.For instance, XY(XY)
Let A = XY, then XY(XY) = A . A = 0
(a) A . 0 = 0
(b) A . 1 = A
(c) A . A = A
(d) A . A = 0
(e) A + 0 = A
(f) A + 1 = 1
(g) A + A = A
(h) A + A = 1
(i) A = A
12
Chapter 7 - Boolean Algebra
IT2001PA Engineering Essentials (2/2)
Boolean Algebra Equalities or Identities
A*0 = 0 A*1 = AA0
A1X = A*0 = 0 X = A*1 = A
Anything ANDed with a 0 is
• equal to 0.
Anything ANDed with a 1 is
• equal to itself.
A*A = A A*A = 0AA
A1X = A*A = A X = A*A = 0
Anything ANDed with itself is
• equal to itself.
Anything ANDed with its own
• complement equals 0.
13
Chapter 7 - Boolean Algebra
IT2001PA Engineering Essentials (2/2)
Boolean Algebra Equalities or Identities
A+0 = A A+1 = 1A0
A1X = A+0 = A X = A+1 = 1
Anything ORed with a 0 is
• equal to itself.
Anything ORed with a 1 is
• equal to 1.
A+A = A A+A = 0AA
A1X = A+A = A X = A+A = 1
Anything ORed with itself is
• equal to itself.
Anything ORed with its own
• complement equals 1.
14
Chapter 7 - Boolean Algebra
IT2001PA Engineering Essentials (2/2)
Boolean Algebra Equalities or Identities
A = A
A X = A = A
A variable that is complemented twice will
• return to its original
A
15
Chapter 7 - Boolean Algebra
IT2001PA Engineering Essentials (2/2)
Elimination Law
Equivalence is demonstrated by showing the truth table derived from the expression on the left side of the equation matches that on the right side.
16
Chapter 7 - Boolean Algebra
IT2001PA Engineering Essentials (2/2)
Next Lesson