Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Math 302 Solutions: Logic Problems and Equivalences, Exams of Discrete Mathematics

The solutions to test a for math 302 (logic) course. It includes determining tautologies through truth tables, calculating the number of elements in cartesian products, expressing logical structures of sentences, and proving set equalities. Also, it covers logical equivalences and identifies which one is incorrect.

Typology: Exams

Pre 2010

Uploaded on 02/10/2009

koofers-user-e9b-1
koofers-user-e9b-1 🇺🇸

10 documents

1 / 3

Toggle sidebar

Related documents


Partial preview of the text

Download Math 302 Solutions: Logic Problems and Equivalences and more Exams Discrete Mathematics in PDF only on Docsity! Math. 302 (Fulling) 22 September 2004 Test A – Solutions Calculators may be used for simple arithmetic operations only! 1. (15 pts.) By constructing a truth table, determine whether or not (p ∧ ¬q) → ¬(p ←→ q) is a tautology. p q p ∧ ¬ q → ¬ p ↔ q 0 0 0 0 1 0 1 0 0 1 0 0 1 0 0 0 1 1 1 0 0 1 1 0 1 1 1 0 1 1 1 0 0 1 1 1 0 0 1 1 0 1 1 1 Since the column resulting for the principal connective, →, is entirely 1s, the statement framework is a tautology. 2. (10 pts.) Let S = {Bush, Kerry} , and let T = {Alabama, Alaska . . . } be the 50 United States. (a) How many elements does the Cartesian product S × T have? 2× 50 = 100 . (b) Which of the following is a subset of S × T ? (A) {(Bush, Texas)} YES. (It is a subset containing only one element.) (B) {(California, Kerry), (Texas, Bush)} NO. (Each ordered pair is in the wrong order — this belongs in T × S .) (C) {Bush, Delaware, Louisiana} NO. (The elements are not ordered pairs. This belongs in S ∪ T .) (D) all of these (E) none of these 3. (20 pts.) Let F (x, y) mean “ x can fool y ”, where the universe of discourse consists of all people. Use quantifiers to express each of these statements. (a) Everyone can be fooled by somebody. ∀y ∃x F (x, y) . (b) Nobody can fool everybody. ¬∃x ∀y F (x, y) . (c) There are exactly two people who can fool everybody. ∃x∃z {x 6= z ∧ ∀y [F (x, y) ∧ F (z, y)] ∧ ∀w [(w 6= x ∧ w 6= z) → ¬∀y F (w, y)]} . (undoubtedly other correct answers are possible.) 302A-F04 Page 2 (d) Everybody can fool Fred. ∀xF (x, Fred) . 4. (25 pts.) Express the logical structure of the sentences in the given paragraph in terms of propositional variables ( p , q , . . . ). Then determine whether the argument is valid. Either Beth is not enrolled as a student, or she is exempt from social security tax. If an employee is exempt from social security tax, then [s]he does not get a pay stub every week. To get an income tax refund, Beth must show that she is enrolled as a student and must submit copies of her weekly pay stubs. Therefore, Beth cannot get the income tax refund. Let s ⇐⇒ Beth is a student, e ⇐⇒ Beth is exempt from social security tax, p ⇐⇒ Beth has pay stubs, r ⇐⇒ Beth gets the tax refund. In order, the three premises have the structures ¬s ∨ e , e → ¬p , r → (s ∧ p) (the two conditions being necessary, maybe not sufficient), and the alleged conclusion is simply ¬r . (In this simple, informal argument, we need not distinguish between submitting the stubs and merely receiving them, etc. Some students pointed out that the premises as stated do not lead to a conclusion if Beth is not an employee; technically that objection is correct, although common sense indicates that in that case there would be no pay stubs and no income tax to be refunded.) The first premise can be rewritten as s → e , which by syllogism with the second premise yields s → ¬p . This last is equivalent to ¬s ∨ ¬p , which is equivalent by a De Morgan law to ¬(s∧p) . So, by the contrapositive of the third premise (in other words, by Modus Tollens), r must be false. Therefore, the argument is valid. 5. (15 pts.) Recall that A − B is the set of those elements that are in A but not in B . Prove that A−B = B ∪A . Start by simplifying the right side by De Morgan to B ∩ A . Now write out the definitions of membership in each side: x ∈ A−B ⇐⇒ x ∈ A ∧ x /∈ B, x ∈ B ∩A ⇐⇒ x /∈ B ∧ x ∈ A. These are the same!