Boolean Algebra: Logistics Last Lecture - Numbers
Boolean Algebra: Logistics Last Lecture - Numbers
Boolean Algebra: Logistics Last Lecture - Numbers
Logistics
Today’s lecture
Boolean algebra
Axioms
Useful laws and theorems
Examples
CSE370, Lecture 3 1
The “WHY” slide
Boolean Algebra
When we learned numbers like 1, 2, 3, we also then learned
how to add, multiply, etc. with them. Boolean Algebra covers
operations that we can do with 0’s and 1’s. Computers do
these operations ALL THE TIME and they are basic building
blocks of computation inside your computer program.
CSE370, Lecture 3 2
How does Boolean Algebra fit into
the big picture?
CSE370, Lecture 3 3
Boolean algebra
CSE370, Lecture 3 4
Digital (binary) logic is a Boolean algebra
Substitute
{0, 1} for B
AND for • Boolean Product.
OR for + Boolean Sum.
NOT for ‘ Complement.
Definitions
Boolean function
Maps inputs from the set {0,1} to the set {0,1}
Boolean expression
An algebraic statement of Boolean variables and operators
CSE370, Lecture 3 5
Logic Gates (AND, OR, Not) & Truth Table
X Y Z
X 0 0 0
AND X•Y XY Y Z 0 1 0
1 0 0
1 1 1
X Y Z
OR X+Y X Z 0 0 0
Y 0 1 1
1 0 1
1 1 1
X Y
NOT X X' X Y 0 1
1 0
CSE370, Lecture 3 6
Logic functions and Boolean algebra
CSE370, Lecture 3 7
Some notation
Priorities: A B+ C = ((A) B) + C
Variables and their complements are sometimes called
literals
CSE370, Lecture 3 8
Two key concepts
de Morgan’s Theorem
Procedure for complementing Boolean functions
Replace: • with +, + with •, 0 with 1, and 1 with 0
Replace all variables with their complements
CSE370, Lecture 3 9
Useful laws and theorems
CSE370, Lecture 3 10
Useful laws and theorems (con’t)
CSE370, Lecture 3 11
Proving theorems
CSE370, Lecture 3 12
Proving theorems
= XY+X'YZ+X'Z
Rearrange terms = XY+X'ZY+X'Z
Use absorption {AB+A=A} with A=X'Z and B=Y
XY+YZ+X'Z = XY+X'Z
CSE370, Lecture 3 13
de Morgan’s Theorem
A B C F A B C F’
0 0 0 0 0 0 0 1
0 0 1 0 0 0 1 1
0 1 0 1 0 1 0 0
0 1 1 1 0 1 1 0
1 0 0 0 1 0 0 1
1 0 1 1 1 0 1 0
1 1 0 0 1 1 0 1
1 1 1 1 1 1 1 0
CSE370, Lecture 3 14
One more example of logic simplification
Example:
Z = A'BC + AB'C' + AB'C + ABC' + ABC
CSE370, Lecture 3 15
Example#1
Construct a Truth Table for the logical functions at points C, D and Q in the
following circuit and identify a single logic gate that can be used to replace
the whole circuit.
CSE370, Lecture 3 16
Example#2
CSE370, Lecture 3 17
Example#3
CSE370, Lecture 3 18