Docsity

Quiz 1 Solution - Applications for Discrete Structures | COT 3100, Quizzes of Computer Science

Toggle sidebar
bg1
COT3100 - Spring 2002 Name:
Quiz I Period: Group#:
01/18/02
(10) 1. Write the truth table: (p ∨ ¬q ∧ r) ⊕ ((q → r) ∧ ¬p)
p q r ¬q p ∨ ¬q p ∨ ¬q ∧ r q → r ¬p ((q → r)
∧ ¬p) (p ∨ ¬q ∧ r) ⊕
((q → r) ∧ ¬p)
T T T F T T T F F T
T T F F T F F F F F
T F T T T T T F F T
T F F T T F T F F F
F T T F F F T T T T
F T F F F F F T F F
F F T T T T T T T F
F F F T T F T T T T
(6) 2. Let p and q be the propositions,
p: You attend Discrete Math class regularly
q: You get an A grade
Write the following propositions using p, q and logical connectives.
(i) You do not attend Discrete Math class regularly
Soln: ¬p
(ii) You attend Discrete Math class regularly but you do not get an A grade
Soln: p ∧ ¬q
(iii) If you do not attend Discrete Math class regularly you do not get an A
grade
Soln: ¬p → ¬q
(3) 3. Write the dual of the expression: (p ∨ F) ∧ (q ∧ T)
Soln: (p ∧ T) ∨ (q ∨ F)
(12) 4. Prove or disprove, using the laws of logic, the statement that ¬(¬(a ∨ b) ∧ (c ∧ a))
is a tautology. (Show each step and state the law)
Soln:
¬( ¬(a ∨ b) ∧ (c ∧ a)) ⇔ ¬( ¬a ∧ ¬b ∧ (c ∧ a)) De Morgan’s Laws
⇔ ¬( ¬a ∧ a ∧ c ∧ ¬b ) Associative Laws
⇔ ¬( F ∧ c ∧ ¬b ) Inverse Laws
⇔ ¬ (F) Domination Laws
⇔ T

Partial preview of the text

Download Quiz 1 Solution - Applications for Discrete Structures | COT 3100 and more Quizzes Computer Science in PDF only on Docsity!

COT3100 - Spring 2002 Name: Quiz I Period: Group#: 01/18/

(10) 1. Write the truth table: (p ∨ ¬q ∧ r) ⊕ ((q → r) ∧ ¬p) p q r ¬ q p ∨ ¬ q (^) p ∨ ¬ q ∧ r q → r ¬ p ((q → r) ∧ ¬ p)

(p ∨ ¬ q ∧ r) ⊕ ((q → r) ∧ ¬ p) T T T F T T T F F T T T F F T F F F F F T F T T T T T F F T T F F T T F T F F F F T T F F F T T T T F T F F F F F T F F F F T T T T T T T F F F F T T F T T T T

(6) 2. Let p and q be the propositions, p: You attend Discrete Math class regularly q: You get an A grade Write the following propositions using p, q and logical connectives. (i) You do not attend Discrete Math class regularly Soln: ¬p

(ii) You attend Discrete Math class regularly but you do not get an A grade Soln: p ∧ ¬q

(iii) If you do not attend Discrete Math class regularly you do not get an A grade Soln: ¬p → ¬q

(3) 3. Write the dual of the expression: (p ∨ F) ∧ (q ∧ T) Soln: (p ∧ T) ∨ (q ∨ F)

(12) 4. Prove or disprove, using the laws of logic, the statement that ¬(¬(a ∨ b) ∧ (c ∧ a)) is a tautology. (Show each step and state the law) Soln: ¬( ¬(a ∨ b) ∧ (c ∧ a)) ⇔ ¬( ¬a ∧ ¬b ∧ (c ∧ a)) De Morgan’s Laws ⇔ ¬( ¬a ∧ a ∧ c ∧ ¬b ) Associative Laws ⇔ ¬( F ∧ c ∧ ¬b ) Inverse Laws ⇔ ¬ (F) Domination Laws ⇔ T