Beruflich Dokumente
Kultur Dokumente
Discrete
Structures
Boolean Algebra
Outline
O Introduction
O Boolean Functions and expressions
O Logic Networks and Karnaugh maps
O Structure of Boolean Algebra
O Application: Seven segment display
Introduction
O Boolean algebra was formulated by
George Boole
O It is an essential tool for designing
networks to solve input and output
problems
O It is the basic mathematics required
for the study of the logic design of
digital systems
O Digital computers use two-state
devices that produce two distinct
output signals
Introduction
O Definition
O A Boolean Algebra (B,+,.,,0,1) consists of
x.y = y.x
O (x+y).z = (x.z+y.z)
(x.y).z = x.(y.z)
O x+(y.z) = (x+y).(x+z)
x.(y+z) = x.y + x.z
O x+0 = x x.0 = 0
O x+x = 1 x.x = 0
XU = X
O X X = U XX =
O The system (P(U), , ,, ,U) is an example of a
Boolean Algebra
Example
O Two-element Boolean algebra
O Let (B,+,.,,0,1) be a given system
0.0=0,
0=1
O 0+1 = 1, 0.1=0,
1=0
O 1+0 = 1, 1.0=0
O 1+1 =1,
1.1=1
Example
O Light bulb problem
O Suppose a single bulb in the middle of
Example
O The relationship
S1
S2
Boolean Algebra
O Theorem
O x.y + x.y = x
O (x+y).(x+y)=x
O Proof
O x.y + x.y = x.(y+y) = x.1 = x
Boolean Algebra
O Proof ctd
O Let x + y = 1 and x.y=0 then
y = y.1
=y.(x + x)
=y.x + y.x
=x.y + x.y
=0 + x.y
=x.x + xy
=x.(x + y)
=x.1
=x
Boolean Algebra
O Theorem: Involution Laws
O (x) = x
O 1=0 and 0=1
O Proof
O Exercise
Boolean Algebra
O Proof ctd
Boolean Functions
O Definition: Boolean Function
O Let {0, 1}n denote the set of all n-tuples of 0s
by
Boolean Function
O Boolean functions are usually
Boolean Functions
Boolean Expressions
O Definition
O A Boolean expression in n variables x 1,x2,..,xn
Boolean Expressions
O When working with Boolean expressions
O Ignore the outer parentheses
O Follow usual precedence i.e. evaluate
Boolean Expressions
O Example
O Define a Boolean function of three
Boolean Expressions
O Ex:
O Outline the truth table for g(x,y,z) =
yx+xz+yy
O The truth table is the same as for the
previous example.
O When a Boolean expression E defines
Boolean Expressions
O The Boolean expression
O 0 defines a constant Boolean function
Boolean Expressions
O Two Boolean expressions are
Boolean Expressions
O Example
O Show that (x +yz)(yz) is equivalent to
xy+xz+yz.
O Solution
Boolean Expressions
O Every Boolean expression in n
Boolean Expressions
O Definition
O Given a Boolean expression E in n
Booleans Expressions
O Example ctd
O From the truth table
O (1,0,1) and (1,1,1)
Boolean Expressions
O It is possible to write all Boolean
Boolean Expressions
O Example
O Define xy by the following truth table
O Clearly xy = xy = (x+y)
O is called a NOR (not or) operation
O To show the is functionally complete
O x = (x + x) = xx
O x.y = (x).(y) = (x + y) = xy =
(xx)(yy)
O The logic gate for NOR is called a NOR gate.
O Any logic network can be written entirely in
Logic networks
O Definition
O A logic gate is a binary electronic
Logic Networks
O The AND
gate
O The OR gate
O The NOT
gate
Logic Networks
O The OR gate represents the Boolean
addition in {0,1}
O The output of the OR gate is 1 if one
multiplication in {0,1}
O The output of the AND gate is 1 if and
Logic Networks
O A logic network (also called
Logic Networks
O The logic networks in the example
Logic Networks
O Example
O What is F(A,B,C) described by the
network below
Logic Networks
O Since every Boolean expression
Logic Networks
O Example
O Construct a logic network to instruct a
Logic Networks
O Soln
O Define varibles x and y defined
O x for master not answering the
Logic Networks
O The half-adder network has two
Logic Networks
O The designing of logic networks can
a Boolean function f
O Find the Boolean expression E, in the
standard sum of products form
O Minimise E
O We define a specific minimised
Logic Networks
O Definition
O A minimal sum of products F for a Boolean
Logic Networks
O Minimisation Rule
O If a Boolean expression is the sum of two miniterms
Logic Networks
O The rows and columns of