Chapter 6
Chapter 6
Boolean Algebra
Introduction
Boolean algebra provides the operations and the rules
for working with the set {0, 1}. Electronic
and optical switches can be studied using this set and
the rules of Boolean algebra. The three
operations in Boolean algebra that we will use most
are complementation, the Boolean sum, and
the Boolean product. The complement of an element,
denoted with a bar, is defined by 0 = 1
and 1 = 0. The Boolean sum, denoted by + or by OR,
has the following values:
1 + 1 = 1,
1 + 0 = 1,
0 + 1 = 1,
0 + 0 = 0.
The Boolean product, denoted by · or by AND, has the
following values:
1 · 1 = 1,
1 · 0 = 0,
0 · 1 = 0,
0 · 0 = 0.
When there is no danger of confusion, the symbol ·
can be deleted, just as in writing algebraic
products. Unless parentheses are used, the rules of
precedence for Boolean operators are: first,
all complements are computed, followed by all
Boolean products, followed by all Boolean sums.
This is illustrated in Example 1.
EXAMPLE 1
Find the value of 1 · 0 +¯ (0 + 1).
Solution: Using the definitions of complementation,
the Boolean sum, and the Boolean product,
it follows that
1 · 0 + (0 + 1) = 0 + 1
=0+0
▲
example12 find the value of 1.0 + ¯0 +¯1
EXAMPLE 5
Find the values of the Boolean function represented
by F (x, y, z) = xy + ¯z.
Solution: The values of this function are displayed in
Table 2.
A Boolean function of degree two is a function from
a set with four elements, namely,
pairs of elements from B = {0, 1}, to B, a set with two
elements. Hence, there are 16 different
Boolean functions of degree two. In Table 3 we
display the values of the 16 different Boolean
functions of degree two, labeled F1 , F2 , . . . , F16.
EXAMPLE 7
How many different Boolean functions of degree n are
there?
Solution: From the product rule for counting, it
follows that there are 2^n different n-tuples
of 0s and 1s. Because a Boolean function is an
assignment of 0 or 1 to each of these 2^n different
n-tuples, the product rule shows that there are 2^ 2^n
different Boolean functions of degree n.
▲
EXAMPLE 9
Translate the distributive law x + yz = (x + y)(x + z)
in Table 5 into a logical equivalence.
Solution: To translate a Boolean identity into a logical
equivalence, we change each Boolean
variable into a propositional variable. Here we will
change the Boolean variables x, y, and z into
the propositional variables p, q, and r. Next, we
change each Boolean sum into a disjunction and
each Boolean product into a conjunction. (Note that 0
and 1 do not appear in this identity and
complementation also does not appear.) This
transforms the Boolean identity into the logical
equivalence
p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r).
This logical equivalence is one of the distributive laws
for propositional logic in Table 6 in
Section 1.3.
▲
Example 1 :
example 2 :
Sum-of-Products Expansions
example/
example 2
example
example :