Boolean Algebra: An Investigation of The Laws of Thought
Boolean Algebra: An Investigation of The Laws of Thought
Boolean Algebra: An Investigation of The Laws of Thought
Precedence
Problem
There are two ways to interpret
A • B + C:
a) Is it (A AND B) then ORed with C Or
b) A ANDed with (B OR C)?
Solution
In Boolean algebra it is always AND before OR Unless
we use parentheses ():
Boolean arithmetic
Addition
Multiplicative Identities
there are also four multiplicative identities:
Ax0 = 0
Ax1 = A
AxA = A
AxA' = 0
In normal algebra 3 x 3 = 32 = 9, which has no meaning
in Boolean algebra. the product of a Boolean quantity
and itself is the original quantity, since 0 x 0 = 0 and 1 x
1=1
Double Complement Identity
Complementing a variable twice (or any even number of
times) results in the original Boolean value.
Commutative Property
Associative Property
Distributive Property
we have the distributive property, illustrating how to
expand a Boolean expression formed by the product of a
sum, and in reverse shows us how terms may be
factored out of Boolean sums-of-products:
First Rule
Second Rule
Third Rule
Boolean function
A binary variable can take the value of 0 or 1.
A Boolean function is an expression formed with
binary variables,
the two binary operators OR and AND
The unary operator NOT
parentheses and equal sign.
Based on values of variables, the function can be either
1 or 0.
A Boolean function may be represented as
Algebric expression
Truth table
Algebric expression
Example 1: If a function is
F1 =xyz’
Then F1 = 1, if x=1, y=1, z’=1 and for all other
combination of x, y, z, F1 = 0
F1=0
Truth table
Representation of Boolean function using Truth Table,
we need a list of 2n combinations of 0’s and 1’s of the n
variables and a column to show the combinations for
which the function is equal to 1 or 0.
Example X Y Z F1 F2 F3 F4
0 0 0 0 0 0 0
F1 = xyz’ 0 0 1 0 1 1 1
0 1 0 0 0 0 0
F2 = x + y’z 0 1 1 0 0 1 1
F3 = x’y’z + x’yz + xy’ 1 0 0 0 1 1 1
1 0 1 0 1 1 1
F4 = xy’ + x’y 1 1 0 1 1 0 0
1 1 1 0 1 0 0
2. x(x’+y) = xx’ + xy
= 0 + xy
= xy
Example 1
let's take the expression (A + (BC)')' and reduce it using
DeMorgan's Theorems:
Following the advice of breaking the longest (uppermost)
bar first
Example 2
Example 3
Applying DeMorgan's Theorems
The following procedure illustrates the application of DeMorgan's theorems and Boolean
algebra to the specific expression
Step l. Identify the terms to which you can apply DeMorgan's theorems, and think of
each term as a single variable. Let A + BC = X and D(E + F) = Y.
Step 2. Since X + Y = X Y,
Step 5. Use rule 9 (A = A) to cancel the double bars over the E + F part of the term.
(A + BC)(D + E + F) = (A + BC)(D + E + F)