Discrete Math Lab 1
Discrete Math Lab 1
2
Compound Propositions, constructed from logical connectives and other propositions
7
8) Suppose that Smartphone A has 256 MB RAM and 32 GB ROM, and the
resolution of its camera is 8 MP; Smartphone B has 288 MB RAM and 64
GB ROM, and the resolution of its camera is 4 MP; and Smartphone C has
128 MB RAM and 32 GB ROM, and the resolution
of its camera is 5 MP. Determine the truth value of each of these
propositions.
Assignment 8
13) Let p and q be the propositions
p: It is below freezing.
q: It is snowing.
Write these propositions using p and q and logical connectives
(including negations).
a) It is below freezing and snowing.
b) It is below freezing but not snowing.
c) It is not below freezing and it is not snowing.
d) It is either snowing or below freezing (or both).
e) If it is below freezing, it is also snowing.
f ) Either it is below freezing or it is snowing, but it is not
snowing if it is below freezing.
g) That it is below freezing is necessary and sufficient for it
to be snowing.
9
10) Let p and q be the propositions
p: I bought a lottery ticket this week.
q: I won the million dollar jackpot.
Express each of these propositions as an English sentence.
a) ¬p
b) p ∨ q
c) p → q
d) p ∧ q
e) p ↔ q Assignment
f ) ¬p → ¬q
g) ¬p ∧ ¬q
h) ¬p ∨ (p ∧ q)
10
18) Determine whether these bi-conditionals are
true or false. p q p↔q
T T T
T F F
a) 2 + 2 = 4 if and only if 1 + 1 = 2. F T F
b) 1 + 1 = 2 if and only if 2 + 3 = 4. F F T
11
21) For each of these sentences, determine whether
an inclusive or, or an exclusive.
Inclusive OR Exclusive OR
p q p∨q p q p⊕q
T T T T T F c and d, Assignment
T F T T F T
F T T F T T
F F F F F F 12
29) State the converse, contrapositive, and inverse of
each of these conditional statements.
q →p ,is the converse of p →q
¬q → ¬p ,is the contrapositive of p →q
¬p → ¬q ,is the inverse of p →q
B, Assignment
13
14
33) Construct a truth table for each of these
compound propositions.
a) p ∧ ¬p
b) p ∨ ¬p
c) (p ∨ ¬q) → q
d) (p ∨ q) → (p ∧ q)
e) (p → q) ↔ (¬q → ¬p)
f ) (p → q) → (q → p)
E and F
Assignment
15
a) p ∧ ¬p b) p ∨ ¬p
p ¬p p ∧ ¬p P ¬p p ∨ ¬p
T F F T F T
F T F F T T
c) (p ∨ ¬q) → q
p q ¬q p ∨ ¬q (p ∨ ¬q) → q
T T F T T
T F T T F
F T F F T
F F T T F
d) (p ∨ q) → (p ∧ q)
p q p∨q p∧q (p ∨ q) → (p ∧ q)
T T T T T
T F T F F
F T T F F
F F F F T 16