Docsity

Boolean Algebra Practice Problems, Slides of Discrete Mathematics

Toggle sidebar
bg1
Math 310
Chapter 11 Practice Problems
1. Find the value of the following Boolean expressions:
(a) 1 ·(1 + 0) + 0(1 + 0)
(b) 1 + (0 ·1)+ [0 + 0 ·1]
2. Build a value table for the following Boolean functions:
(a) F(x, y) = x+xy
(b) F(x, y, z) = xy z +y(x+z)
3. Use value tables to determine whether of not the following pairs of Boolean Expressions are equivalent:
(a) x+yand xy
(b) xyz and x+y+z
4. Use a 2-column proof to prove each of the following:
(a) (xyz) + (y z) = yz
(b) (x+z)·(y+z) = (x+y)·z
5. Given the following value table:
x y z F (x, y , z)G(x, y, z)H(x, y , z)
0 0 0 0 1 0
0 0 1 0 0 1
0 1 0 1 0 1
0 1 1 0 1 0
1 0 0 1 0 1
1 0 1 0 1 0
1 1 0 0 0 0
1 1 1 0 0 1
(a) Find the sum of products expansion for F(x, y, z )
(b) Find the sum of products expansion for G(x, y, z )
(c) Find the sum of products expansion for H(x, y, z )
(d) Construct a circuit whose output is equivalent to F(x, y, z)
(e) Construct a circuit whose output is equivalent to G(x, y, z)
(f) Construct a circuit whose output is equivalent to H(x, y, z )
6. Find the sum of products expansion for each of the following Boolean Functions:
(a) F(x, y, z) = x+y+xz
(b) F(x, y, z) = (x+y)z+x(y+z)
(c) F(x, y, z) = xy +xy +y
(d) F(w, x, y, z ) = (x+y)(z+w)
7. Find the sum of products expansion of a Boolean function F(s, t, x, y , z) that has value 1 if and only if an even number
of the variables have value 1.
8. Given F(x, y, z) = x(y+z)
(a) Express F(x, y, z) as a Boolean expression using only the operations ·and .
(b) Express F(x, y, z) as a Boolean expression using only the operations + and .
(c) Express F(x, y, z) as a Boolean expression using only the operation |.
(d) Express F(x, y, z) as a Boolean expression using only the operation ↓.
pf2

Partial preview of the text

Download Boolean Algebra Practice Problems and more Slides Discrete Mathematics in PDF only on Docsity!

Math 310 Chapter 11 Practice Problems

  1. Find the value of the following Boolean expressions: (a) 1 · (1 + 0) + 0(1 + 0) (b)

[

]

+ [0 + 0 · 1]

  1. Build a value table for the following Boolean functions: (a) F (x, y) = x + xy (b) F (x, y, z) = xyz + y(x + z)
  2. Use value tables to determine whether of not the following pairs of Boolean Expressions are equivalent: (a) x + y and xy (b) xyz and x + y + z
  3. Use a 2-column proof to prove each of the following: (a) (xyz) + (yz) = yz (b) (x + z) · (y + z) = (x + y) · z
  4. Given the following value table: x y z F (x, y, z) G(x, y, z) H(x, y, z) 0 0 0 0 1 0 0 0 1 0 0 1 0 1 0 1 0 1 0 1 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 1 1 0 0 0 0 1 1 1 0 0 1 (a) Find the sum of products expansion for F (x, y, z) (b) Find the sum of products expansion for G(x, y, z) (c) Find the sum of products expansion for H(x, y, z) (d) Construct a circuit whose output is equivalent to F (x, y, z) (e) Construct a circuit whose output is equivalent to G(x, y, z) (f) Construct a circuit whose output is equivalent to H(x, y, z)
  5. Find the sum of products expansion for each of the following Boolean Functions: (a) F (x, y, z) = x + y + xz (b) F (x, y, z) = (x + y)z + x(y + z) (c) F (x, y, z) = xy + xy + y (d) F (w, x, y, z) = (x + y)(z + w)
  6. Find the sum of products expansion of a Boolean function F (s, t, x, y, z) that has value 1 if and only if an even number of the variables have value 1.
  7. Given F (x, y, z) = x(y + z) (a) Express F (x, y, z) as a Boolean expression using only the operations · and. (b) Express F (x, y, z) as a Boolean expression using only the operations + and. (c) Express F (x, y, z) as a Boolean expression using only the operation |. (d) Express F (x, y, z) as a Boolean expression using only the operation ↓.
  1. Find the output of each of the following circuits:

(a)

y

x

z

(b)

y

x

z

y

x

z

(c)

y

x

z

y

x

z

  1. Recall that in the game “Paper, Scissors, Rock”, two players decide which of the three symbols to show. Rock beats scissors, scissors beats paper, and paper beats rock, while if both players show the same symbol, the game ends in a tie. Suppose we decide to model this game using a circuit accepting a 6 bit input and giving a 3 bit output. The input string is in the form p 1 s 1 r 1 p 2 s 2 r 2 and the output is in the form w 1 w 2 t. For example, the input 001100 corresponds to player 1 showing rock, player 2 showing paper, so it should lead to the output 010, which corresponds to player 2 winning. Build a circuit that models this game. You can filter out illegal inputs by declaring their output to be a tie.
  2. Use a K-map to minimize each of the following expressions.

(a) xy + xy + x y (b) xyz + xyz + xyz + xy z + xyz + x y z (c) (x + y)z + x(y + z) (d) wxyz + wxyz + wxy z + w x y z (e) wxyz + wx y z + wxyz + wxyz + w xyz + w xyz + w x yz + w x y z

  1. Given the following circuit: x y z x y z x y z x y z x y z

(a) Find an expression for the output of this circuit. (b) Put the expression for this circuit into sum of products form. (c) Use K-map to minimize the expression. (d) Draw a circuit representing the minimized expression. (e) How does the efficiency of the two circuits compare?