CSCI 3310 Homework 1
CSCI 3310 Homework 1
1. Let P = “winter has come,” Q = “there is snow on the ground." Rewrite the following
(b) ¬𝑃 ⟹ ¬𝑄 If winter has not come then there is no snow on the ground.
(c) (𝑃 ∧ ¬𝑄)⋁(¬𝑃⋀𝑄) Either winter has come and there is no snow on the ground, or winter
has not come and there is snow on the ground.
(b) P ⟹ ¬(𝑄 ∧ 𝑅)
(a) ¬(P ∧ (Q ∨ ¬P))
(𝑃 ∧ 𝑄) ⟹ (¬𝑃 ⟹
¬𝑄)
P Q ¬(P ∧ (Q ∨ ¬P))
P Q R P ⟹ ¬(𝑄 ∧ 𝑅)
(a) P ∧ ¬𝑃 ∨ 𝑄 ∧ 𝑃
3. Evaluate the following propositions for truth values P = T, Q = F, R = F:
T ∧ ¬T ∨ F ∧ T
T∧F∨F∧T
F∨F=F
(b) P ∨ ¬(𝑄 ⊕ ¬𝑅) ∧ ¬𝑄
T ∨ ¬(F ⊕ ¬F) ∧ ¬F=T
(c) ¬𝑃 ⟹ ¬𝑄 ⟹ ¬𝑃 ∧ 𝑄
¬T ⟹ ¬F ⟹ ¬T ∧ F
F ⟹T ⟹ F ∧ F
F ⟹(T ⟹ F)
F ⟹F= T
4. Show that P ∧ (𝑃 ⟹ ¬ 𝑄) and P ∧ ¬𝑄 are logically equivalent using truth tables, and also
P ∧ (𝑃 ⟹ ¬ 𝑄)
by using the laws of propositional logic.
P ∧ (¬𝑃 ∨ ¬ 𝑄)
P ∧ (¬𝑃 ∨ P ∧ ¬ 𝑄)
F∨ P ∧ ¬ 𝑄
P∧ ¬ 𝑄
P Q P ∧ (𝑃 ⟹ ¬ 𝑄) P ∧ ¬𝑄
(𝑃 ∧ 𝑄) ¬(𝑃 ∧ 𝑄) (𝑃 ∧ 𝑄) ∧ ¬(𝑃
∧ 𝑄)
P Q
7. Let P(𝑥) = "x has come", Q(𝑥) = "the north likes x”. The universe of x is seasons. Rewrite the
8. Let P(𝑥) = “𝑥 𝑖𝑠 𝑐𝑜𝑙𝑑”, Q(𝑥, 𝑦) = "x is y”. The universe of x is seasons, and the universe
of 𝑦 is {"coming", "going"}. Rewrite the following predicates symbolically:
(a) ``Winter is cold, and winter is coming''
P(winter) ∧ Q(winter, coming)
9. Let 𝐻(𝑥) = ``𝑥 is a man,'' 𝑀(𝑥, 𝑦) = ``𝑥 is married to 𝑦, ′′ and 𝑈(𝑥) = ``𝑥 𝑖𝑠 𝑢𝑛ℎ𝑎𝑝𝑝𝑦. ′′
The universe of both 𝑥 and 𝑦 is people. Rewrite the following in words:
(a) ∀𝑥[(𝐻(𝑥) ∧ ¬∃𝑦𝑀(𝑥, 𝑦)) ⟹ 𝑈(𝑥)]
(a) ∀𝑥(𝑥^ 2 ≤ 4) where the universe of 𝑥 is 𝑁, i.e., the set of all natural numbers.
10. Give a counterexample to the following statements:
x=3
(b) ∀𝑥∃𝑦(𝑥^ 3 − 𝑦^ 3 > 0) where the universes of 𝑥 and 𝑦 are 𝑍 +, i.e., the set of all positive
3^2=9 !≤ 4
integers.
x=1
1^3-1^3=0 !>0
11. Show that 𝐹(𝑥, 𝑦, 𝑧) = 𝑥𝑦 + 𝑥𝑧 + 𝑦𝑧 has the value 1 if and only if at least two of the
variables 𝑥, 𝑦, and 𝑧 have the value 1.
x y z 𝑥𝑦 + 𝑥𝑧 + 𝑦𝑧
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 1
(a) Find the sum-of-products expansion of the Boolean function 𝐹(𝑤, 𝑥, 𝑦, 𝑧) that has the
13. Do the following two parts:
(𝑥̅+𝑦̅+𝑧)(𝑥+𝑦̅+𝑧)(𝑥+𝑦+𝑧)
𝑥𝑦𝑧̅+ 𝑥̅𝑦𝑧̅+ 𝑥̅𝑦̅𝑧̅