DOC PREVIEW
UMD CMSC 250 - Homework #2 Solutions

This preview shows page 1 out of 4 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 4 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 4 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

CMSC 250 (0201 & 0202) Homework 2 Fall 2005SolutionsYou must write the solutions to the problems single-sided on your own lined paper,with all sheets stapled together, and with all answers written in sequential order oryou will lose points.1. Give the negations of the following statements using DeMorgan’s Law.(a) Fords and Chevys are good cars.Either Fords are not good cars OR Chevys are not good cars.(b) Either Sue won’t go to the wedding or Fred will.Sue will go to the wedding AND Fred won’t go to the wedding.(c) Neither the Sun nor the Moon are heavenly bodies.Either the Sun is a heavenly body OR the Moon is a heavenly body.2. For each of the following statements, give its inverse, converse and contrapositive.(a) If it rains in Spain, then it is May.Inverse: If it doesn’t rain in Spain, then it is not MayConverse: If it is May, then it rains in SpainContrapositive: If it isn’t May, then it doesn’t rain in Spain.(b) Good times will follow if you go to a party.Inverse: If you do not go to a party, then good times will not follow.Converse: If good times followed, then you went to a party.Contrapositive: If good times do not follow, then you didn’t go to a party.(c) If trees are blooming, then it’s spring.Inverse: If trees are not blooming, then it isn’t spring.Converse: If it’s spring, then trees are blooming.Contrapositive: If it isn’t spring, then trees are not blooming.(d) You will pass only if you work hard.Inverse: You will not pass only if you do not work hard.Conv erse: If you passed, then you worked hard.Contrapositive: If you did not pass, then you did not work hard.13. Write the complete truth table for each of the following:(a) (p → q) ∨ (∼ r ∧ p).p q r ∼ r p → q ∼ r ∧ p (p → q) ∨ (∼ r ∧ p)1 1 1 0 1 0 11 1 0 1 1 1 11 0 1 0 0 0 01 0 0 1 0 1 10 1 1 0 1 0 10 1 0 1 1 0 10 0 1 0 1 0 10 0 0 1 1 0 1(b) a ↔ (b∧∼c)a b c ∼ c b∧∼c a ↔ (b∧∼c)1 1 1 0 0 01 1 0 1 1 11 0 1 0 0 01 0 0 1 0 00 1 1 0 0 10 1 0 1 1 00 0 1 0 0 10 0 0 1 0 14. For each of the following state the one single rule from Theorem 1.1.1 (page 14) or Table 1.3.1(Page 39) that could be used to go directly from the statement(s) to the conclusion, or “none”if there is no such rule.(a) statement: (p → q) ∧ pconclusion: q.None.(b) statements: p → qpconclusion q.Modus ponens.(c) statements: a → b∼ a → cconclusion: b ∨ cNone.item statements: a → ba ∨ cconclusion: c → bNone.25. Use a truth table to determine if the following argument is valid or not. State whether or notit is valid, and give your reasons why it is valid or not.P1 p ∨ qP2 r → qP3 ∼ p →∼ rTherefore ∼ pPremise Premise Premise Conclusionp q r p ∨ q r → q ∼ p ∼ r ∼ p →∼ r ∼ p1 1 1 1 1 0 0 1 0 ← Critical1 1 0 1 1 0 1 1 0 ← Critical1 0 1 1 0 0 0 1 01 0 0 1 1 0 1 1 0 ← Critical0 1 1 1 1 1 0 0 10 1 0 1 1 1 1 1 1 ← Critical0 0 1 0 0 1 0 0 10 0 0 0 1 1 1 1 1Since the premises are all true in the first row and the conclusion is false in the first row, theargument is invalid.6. Use the rules of inference you were given to prove the following:(a)P1 r ∨ sP2 y →∼ sP3 ∼ (y ∧ w)P4 ∼ p →∼ rP5 w →∼ sP6 y ∨ wTherefore p ∨ xNumber Statement Reason Lines Used(1) ∼ s “Dilemma: proof by division into cases” P2, P5, and P6(2) r Disjunctive syllogism P1 and (1)(3) ∼∼ r Double negation law (2)(4) ∼∼ p Modus tollens P4 and (3)(5) p Double negation law (4)(6) p ∨ x Disjunctive addition (5)3(b)P1 a ∨ (b ∧ m)P2 (a ∨ b ∨ g) → dP3 (a ∨ m) → (∼ e → f )P4 ∼ fTherefore (d ∨ h) ∧ (e ∨ h)Number Statemen t Reason Lines Used(1) (a ∨ b) ∧ (a ∨ m) Distributive law P1(2) a ∨ m Conjunctive Simplification (1)(3) ∼ e → f Modus ponens P3 and (2)(4) ∼∼ e Modus Tolens P4 and (3)(5) e Double negative law (4)(6) e ∨ h Disjunctive addition (5)(7) a ∨ b Conjunctive Simplification (1)(8) a ∨ b ∨ g Disjunctive addition (7)(9) d Modus ponens P2 and (8)(10) d ∨ h Disjunctive addition (9)(11) (d ∨ h) ∧ (e ∨ h) Conjunctive addition (6) and (10)P1 x → yP2 ∼ y ∨ qP3 (r∧∼q) ∨ gTherefore ∼ g →∼ (x∨∼r)(c)Number Statement Reason Lines Used(1) |∼g Assume(2) |(r∧∼q) Disj. Syll. P3 and (1)(3) |r Conj. Simp. (2)(4) |∼q Conj. Simp. (2)(5) |∼y Disj. Syll. P2 and (4)(6) |∼x Modus Tollens P1 and (5)(7) |∼x ∧ r Conj. Addition (3) and (6)(8) |∼(x∨∼r) De Morgan’s Law (7)(9) ∼ g →∼ (x∨∼r) Close Condit Wld.


View Full Document

UMD CMSC 250 - Homework #2 Solutions

Download Homework #2 Solutions
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Homework #2 Solutions and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Homework #2 Solutions 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?