Module4_ Lecture 3 & 4
Module4_ Lecture 3 & 4
Computer Science
Binary Operations: semi-group, group; Subgroup: Cosets; Ring; Field; Boolean algebra; Binary
Arithmetic.
Module 4:
Topic : Boolean
Algebra
• Boolean algebra provides the operations and the rules for
• complementation,
• Boolean product.
• The complement of an element, denoted with a
bar, is defined by
Solution:
Using the definitions of complementation, the Boolean sum, and the Boolean
product,
it follows that
=1·0+(0+1)’
=0+1’
=0+0
=0.
EXAMPLE 2
Show that(1·1)+((0·1)’+0)=1.
Boolean Expressions and Boolean
Functions
• LetB={0,1}.
Then Bn={(x1,x2,...,xn)|xi ∈ B for 1≤i≤n}is the set of all
possiblen-tuples of 0s and 1s.
The function F(x, y)=xy’ from the set of ordered pairs of Boolean
variables to the set{0,1} is a Boolean function of degree 2 with F(1,1)=0,
F(1,0)=1, F(0,1)=0, and F(0,0)=0. We display these values of F in Table 1
EXAMPLE
f(A,B,C) = ∑m(0,3,5) =
∏M(1,2,4,6,7)
Figure 6 K-maps for f(a,b,Q,G) in Example 3.4
(a) Minterm form. (b) Maxterm form.
f(a,b,Q,G) = ∑m(0,3,5,7,10,11,12,13,14,15) =
∏M(1,2,4,6,8,9)
Figure 7 K-map of Figure 7(a) with variables reordered:
f(Q,G,b,a).
f(Q,G,b,a) = ∑m(0,12,6,14,9,13,3,7,11,15) =
∑m(0,3,6,7,9,11,12,13,14,15)
Plotting Functions in Algebraic Form
f(A,B,C) = AB +
BC′
Example 2.
(a) Maxterms, (b) Minterms, (c) Minterms of f ′.
f(A,B,C,D)= (A′+B′)(A′+C+D′)(B′
+C′+D′)
Simplification of Switching Functions
Using K-maps
f(A,B,C,D) =
∑m(1,2,4,6,9)
Simplification Guidelines for K-maps
3. Generate a prime implicant for this minterm and put it in the cover. If this
minterm is covered by more than one prime implicant, select the one that
covers the most uncovered minterms.
f(A,B,C,D) =
∑m(2,3,4,5,7,8,10,13,15)
Algorithm -- Generating and Selecting
Prime Implicants (Revisited)
2. Identify and select all essential prime implicants for the cover.
f(A,B,C,D) =
∑m(2,3,4,5,7,8,10,13,15)
Example
f(A,B,C,D) = ∑m(0,5,7,8,10,12,14,15)
Example
f(A,B,C,D) = ∑m(1,2,3,6) = A′C + BC′
Example
f(A,B,C,D) = B′D′ + B′C′ + BCD
Example
Function with no essential prime implicants.
f(A,B,C,D) =
∑m(0,4,5,7,8,10,14,15)
Example
Minimizing a five-variable function.
f(A,B,C,D,E) = ∑m(0,2,4,7,10,12,13,18,23,26,28,29)
Prime Implicates and Covers
3. Generate a prime implicate for this maxterm and put it in the cover. If this
maxterm is covered by more than one prime implicate, select the one that
covers the most uncovered maxterms.
2. Identify and select all essential prime implicates for the cover.
f′ = A′ B′ + B′ C′ D +
BCD′
f = (A + B)(B + C + D′ )(B′ +
C′ + D)
Example -- Minimum covers of
f(A,B,C,D) = ∏ M (3,4,6,8,9,11,12,14) and its complement.
Figure
3.21
Finding a minimal POS expression
for a 5-variable function.
Deriving POS and SOP forms of a function.
Minimizing a Function with Don’t Cares.
f(A,B,C,D) = ∑m(1,3,4,7,11) + d(5,12,13,14,15)
= ∏M(0,2,6,8,9,10) ∙ D(5,12,13,14,15)
SO PO
P S