Boolean Algebra
Boolean Algebra
Boolean algebra derives its name from the mathematician George Boole.
Symbolic Logic uses values, variables and operations :
Variables are represented by letters and can have one of two values, either
0 or 1. Operations are functions of one or more variables.
• AND is represented by X.Y
• OR is represented by X + Y
• NOT is represented by X' . Throughout this tutorial the X' form will
be used and sometime !X will be used.
Example :
• X
• X.Y
• W.X.Y + Z
Precedence
As with any other branch of mathematics, these operators have an order of
precedence. NOT operations have the highest precedence, followed by
AND operations, followed by OR operations. Brackets can be used as with
other forms of algebra. e.g.
Function Definitions
The logic operations given previously are defined as follows :
f(X,Y) = X.Y
• 1 if X = 1 and Y = 1
• 0 Otherwise
f(X,Y) = X + Y
• 1 if X = 1 or Y = 1
• 0 Otherwise
f(X) = X'
• 1 if X = 0
• 0 Otherwise
Truth Tables
Truth tables are a means of representing the results of a logic function
using a table. They are constructed by defining all possible combinations of
the inputs to a function, and then calculating the output for each
combination in turn. For the three functions we have just defined, the truth
tables are as follows.
AND
X Y F(X,Y)
0 0 0
0 1 0
1 0 0
1 1 1
OR
X Y F(X,Y)
0 0 0
0 1 1
1 0 1
1 1 1
NOT
X F(X)
0 1
1 0
Axioms
Consider a set S = { 0. 1}
Consider two binary operations, + and . , and one unary operation, -- , that
act on these elements. [S, ., +, --, 0, 1] is called a switching algebra that
satisfies the following axioms S
Closure
Identity
Commutative Laws
X+Y=Y+X
X.Y=Y.X
Distributive Laws
Complement
Idempotent Law
X+X=X
X.X=X
DeMorgan's Law
(X + Y)' = X' . Y', These can be proved by the use of truth tables.
X Y X+Y (X+Y)'
0 0 0 1
0 1 1 0
1 0 1 0
1 1 1 0
The two truth tables are identical, and so the two expressions are identical.
(X.Y) = X' + Y', These can be proved by the use of truth tables.
X Y X.Y (X.Y)'
0 0 0 1
0 1 0 1
1 0 0 1
1 1 1 0
X Y X' Y' X'+Y'
0 0 1 1 1
0 1 1 0 1
1 0 0 1 1
1 1 0 0 0
Boundedness Law
X+1=1
X.0=0
Absorbtion Law
X + (X . Y) = X
X . (X + Y ) = X
Elimination Law
X + (X' . Y) = X + Y
X.(X' + Y) = X.Y
Involution theorem
X'' = X
0' = 1
Associative Properties
X + (Y + Z) = (X + Y) + Z
X.(Y.Z)=(X.Y).Z
Consensus theorem
Given a pair of terms for which a variable appears in one term, and its
complement in the other, then the consensus term is formed by ANDing
the original terms together, leaving out the selected variable and its
complement.
Example :
The consensus of X.Y and X'.Z is Y.Z
Algebraic Manipulation
X Y Minterm Maxterm
0 0 X'.Y' X+Y
0 1 X'.Y X+Y'
1 0 X.Y' X'+Y
1 1 X.Y X'+Y'
For a three-variable
expression, the minterms and
maxterms are as follows
X Y Z Minterm Maxterm
0 0 0 X'.Y'.Z' X+Y+Z
0 0 1 X'.Y'.Z X+Y+Z'
0 1 0 X'.Y.Z' X+Y'+Z
0 1 1 X'.Y.Z X+Y'+Z'
1 0 0 X.Y'.Z' X'+Y+Z
1 0 1 X.Y'.Z X'+Y+Z'
1 1 0 X.Y.Z' X'+Y'+Z
1 1 1 X.Y.Z X'+Y'+Z'
where ak is 0 or 1 and mk is a
minterm.
To derive the Sum of
Products form from a truth
table, OR together all of the
minterms which give a value
of 1.
Example
X Y F Minterm
0 0 0 X'.Y'
0 1 0 X'Y
1 0 1 X.Y'
1 1 1 X.Y
Example
X Y F Maxterm
0 0 1 X+Y
0 1 0 X+Y'
1 0 1 X'+Y
1 1 1 X'+Y'
Exercise
X Y Z F(X,Y,X)
0 0 0 1
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 0
Simplification
As with any other form of
algebra you have
encountered, simplification of
expressions can be
performed with Boolean
algebra.
Logic Circuits
Positive Logic
In a positive logic system, a high voltage is used to represent
logical true (1), and a low voltage for a logical false (0).
Negative Logic
In a negative logic system, a low voltage is used to represent
logical true (1), and a high voltage for a logical false (0).
Switching Circuits
The abstract logic described previously can be implemented as
an actual circuit. Switches are left open for logic 0 and closed for
logic 1.
Truth Table
A truth table is a means for describing how a logic circuit's output
depends on the logic levels present at the circuit's inputs.
X Y F = X*Y
0 0 0
0 1 0
1 0 0
1 1 1