12.07.2015 Views

WUCT121 Discrete Mathematics Logic Tutorial Exercises Solutions

WUCT121 Discrete Mathematics Logic Tutorial Exercises Solutions

WUCT121 Discrete Mathematics Logic Tutorial Exercises Solutions

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Question2(a) If x is odd and y is odd then x + y is even.p: x is odd. q: y is odd. r: x + y is even.Form: p ∧ q ⇒ r .(b)(c)(d)It is not both raining and hot.p: It is raining. q: It is hot~ p ∧ q , alternatively ~ p ∨ ~ qForm: ( )It is neither raining nor hot.p: It is raining. q: It is hotForm: p ~ q~ ∧ , alternatively ( p ∨ q)It is raining but it is hot.p: It is raining. q: It is hot.Form: p ∧ q .~ .(e) −1 ≤ x ≤ 2 .p : −1< x,q : −1= x,r : x < 2, s : x = 2 .Form: ( p ∨ q)∧ ( r ∨ s).Question3 :(a) P ∨ Q : <strong>Mathematics</strong> is easy or I do not need to study.(b)(c)(d)(e)(f)(g)P ∧ Q : <strong>Mathematics</strong> is easy and I do not need to study~ Q : I need to study.~ ~ Q : I do not need to study.~ P : <strong>Mathematics</strong> is not easy.~ P ∧ Q : <strong>Mathematics</strong> is not easy and I do not need to study.P ⇒ Q : If <strong>Mathematics</strong> is easy, then I do not need to studyQuestion4(a) The truth tables for ( ~ p ∨ q) ∧ q and ( p ∧ q) ∨ q~ .p q (~p ∨ q) ∧ q (~p ∧ q) ∨ qT T F T T F F TT F F F F F F FF T T T T T T TF F T T F T F FStep: 1 2 3* 1 2 3*The tables are the same(b) The truth tables for ( ~ p ∨ q) ∧ p and ( p ∧ q) ∨ p~ .p q (~p ∨ q) ∧ p (~p ∧ q) ∨ pT T F T T F F TT F F F F F F TF T T T F T T TF F T T F T F FStep: 1 2 3* 1 2 3*The tables are not the same. The student’s guess is false<strong>WUCT121</strong> <strong>Logic</strong> <strong>Tutorial</strong> <strong>Exercises</strong> <strong>Solutions</strong> 3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!