Assignment#2
Assignment#2
2) If the statement q ∧ r is true, determine all combinations of truth values for p and s
such that the statement (q → [¬p ∨ s]) ∧ [¬s → r] is true.
3) Find all combinations of truth values for p, q and r for which the statement ¬p ↔
(q ∧ ¬(p → r)) is true.
4) Is (p → q) → [(p → q) → q] a tautology? Why or why not?
6) Write each of the following statements, in English, in the form “if p, then q”.
(a) I go swimming on Mondays.
(b) In order to be able to go motorcycling on Sunday, the weather must be good.
(c) Eat your vegetables or you can’t have dessert.
(d) You can ride a bicycle only if you wear a helmet.
(e) Polynomials are continuous functions.
(f) A number n that is a multiple of 2 and also a multiple of 3 is a multiple of 6.
(g) You can’t have any pudding unless you eat your meat.
(h) The cardinality of a set is either finite or infinite.
9) Use known logical equivalences to show that (¬a → b) ∧ (¬b ∨ (¬a ∨ ¬b)) is logically
equivalent to ¬(a ↔ b).
1
10) Use known logical equivalences to show that ¬(p ↔ q) is logically equivalent to
(p ∨q) ∧ (p → ¬q).
11) Use known logical equivalences to do each of the following.
(a)Show p → (q ∨ r) ⇔ (p ∧ ¬q) → r.
(b) Show ¬(p ∨ q) ∨ (¬p ∧ q) ∨ ¬(¬p ∨ ¬q) ⇔ ¬(p ∧ ¬q).
(c) Find an expression logically equivalent to ¬(p ↔ q) that involves only ¬ and ∨.
12) Write the argument below in symbolic form. If the argument is valid, prove it. If the
argument is not valid, give a counterexample:
(a)
(b)
If you are pregnant or have a heart condition, then you cannot use the hot tub.
You do not have a heart condition.
You can use the hot tub.
∴ You are not pregnant.
Boolean Algebra
13) For each of the following Boolean expressions, simplify –if possible- then draw a logic
diagram
a)
b)
c)
d) ( ) ( )
14) Use a K-map to find a minimal expansion as a Boolean sum of Boolean products of
each of these functions of the Boolean variables and .
a) ̅ ̅̅
b) ̅
c) ̅ ̅ ̅ ̅
15) Use a K-map to find a minimal expansion as a Boolean sum of Boolean products of
each of these functions in the variables , , and .
a) ̅ ̅ ̅
2
b) ̅ ̅ ̅ ̅
c) ̅ ̅ ̅ ̅ ̅ ̅̅
d) ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅
16) Use a K-map to find a minimal expansion as a Boolean sum of Boolean products of
each of these functions in the variables , , , and .
a) ̅ ̅̅ ̅ ̅ ̅ ̅
b) ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅
c) ̅ ̅ ̅̅ ̅ ̅ ̅ ̅ ̅ ̅̅ ̅ ̅ ̅ ̅
d) ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅