Docsity

Discussions Problem and Solutions - Applied Discrete Structure | COT 3100, Assignments of Computer Science

Toggle sidebar
bg1
Discussion Problems and Solutions 2
1 Section 1.4
Exercise 1: Express each of these statements using mathematical and logical op-
erators, predicates and quantifiers, where the domain consists of all integers.
(a) The sum of two negative integers is negative.
(b) The absolute value of the product of two integers is the product of their
absolute values.
Solution:
(a)∀x∀y((x < 0) ∧(y < 0) →(x+y < 0)).
(b)∀x∀y(|xy|=|x||y|)
Exercise 2: Translate each of these nested quantifications into an English state-
ment that expresses a mathematical fact. The domain in each case consists of all
real numbers.
(a)∃x∀y(xy =y)
(b)∀x∀y∃z(x+y=z)
Solution:
(a)This says that there exists a real number x such that for every real number
y, the product xy equals y.
(b)This says that for every pair of real numbers x and y, there exists a real
number z that is their sum.
2 Section 1.5
Exercise 3: For each of these arguments determine whether the argument is cor-
rect or incorrect and explain why.
(a) Every computer science major takes discrete mathematics. Harry is taking
discrete mathematics. Therefore, Harry is a computer science major.
1
pf3

Partial preview of the text

Download Discussions Problem and Solutions - Applied Discrete Structure | COT 3100 and more Assignments Computer Science in PDF only on Docsity!

Discussion Problems and Solutions 2

1 Section 1.

Exercise 1: Express each of these statements using mathematical and logical op- erators, predicates and quantifiers, where the domain consists of all integers. (a) The sum of two negative integers is negative. (b) The absolute value of the product of two integers is the product of their absolute values. Solution: (a)∀x∀y((x < 0) ∧ (y < 0) → (x + y < 0)). (b)∀x∀y(|xy| = |x||y|) Exercise 2: Translate each of these nested quantifications into an English state- ment that expresses a mathematical fact. The domain in each case consists of all real numbers. (a)∃x∀y(xy = y) (b)∀x∀y∃z(x + y = z) Solution: (a)This says that there exists a real number x such that for every real number y, the product xy equals y. (b)This says that for every pair of real numbers x and y, there exists a real number z that is their sum.

2 Section 1.

Exercise 3: For each of these arguments determine whether the argument is cor- rect or incorrect and explain why. (a) Every computer science major takes discrete mathematics. Harry is taking discrete mathematics. Therefore, Harry is a computer science major.

(b) All parrots like fruit. My pet bird is not a parrot. Therefore, my pet bird does not like fruit. Solution: (a)This is invalid. After applying universal instantiation, it contains the fallacy of affirming the conclusion. (b)This is invalid. After applying universal instantiation, it contains the fallacy of denying the hypothesis. Exercise 4: Use rules of inference to show that if ∀x(P (x) ∨ Q(x)), ∀x(¬Q(x) ∨ S(x)), ∀x(R(x) → ¬S(x)), and ∃x¬P (x) are true, then ∃x¬R(x) is true. Solution: Step Reason

  1. ∃x¬P (x) Premise
  2. ¬P (c) Existential instantiation using (1)
  3. ∀x(P (x) ∨ Q(x)) Premise
  4. P (c) ∨ Q(c) Universal instantiation using (3)
  5. Q(c) Disjunctive syllogism using (4) and (2)
  6. ∀x(¬Q(x) ∨ S(x)) Premise
  7. ¬Q(c) ∨ S(c) Universal instantiation using (6)
  8. S(c) Disjunctive syllogism using (5) and (7)
  9. ∀x(R(x) → ¬S(x)) Premise
  10. R(c) → ¬S(c) Universal instantiation using (9)
  11. ¬R(c) Modus tollens using (8) and (10)
  12. ∃x¬R(x) Existential generalization using (11)

3 Section 1.

Exercise 5: Show that if n is an integer and n^3 + 5 is odd, then n is even using (a) a proof by contraposition. (b) a proof by contradiction Solution: (a) We must prove the contrapositive. If n is odd, then n^3 + 5 is even. Assume that n is odd. Then we can write n = 2k + 1 for some integer k. Then n^3 + 5 = (2k + 1)^3 + 5 = 8k^3 + 12k^2 + 6k + 6 = 2(4k^3 + 6k^2 + 3k + 3). Thus n^3 + 5 is two times some integer, so it is even. (b) Suppose that n^3 +5 is odd and that n is odd. Since n is odd, and the product of odd numbers is odd, in two steps we see that n^3 is odd. But then subtracting we conclude that 5, being the difference of the two odd numbers n^3 + 5 and n^3