Docsity

Predicate Logic Answer - Discrete Structures Computer science | CSE 260, Quizzes of Discrete Structures and Graph Theory

Toggle sidebar
bg1
CSE 260-002
QUIZ-3– Predicate Logic- ANSWERS
(30 points/20 minutes)
NAME:
1. (8 points) Answer the following true/false.
(a) ∀xP (x)⇔ ¬∃x¬P(x)
True
(b) ∃xP (x)⇔ ¬∀xP (x)
False
(c) ∀x∃yP (x, y)⇔ ∃y∀xP (x, y )
False
(d) ∃!xp(x)⇔ ∃x(p(x)∧ ∀y((x6=y)→ ¬p(y))
True
2. (8 points) Let the universe of discourse for the variable n be N(all
integers ≥0) and
p(n)=”n is prime”
e(n)= ”n is even.”
Write the following in ordinary English (do not say it in terms of nand
m):
(a) ∀n∃m((¬e(n)∧n6=m)→e(n+m))
For each odd natural number there is a different natural number
sum of which two is even.
(b) ∀m∀n((p(m)∧p(n)∧m6= 2 ∧n6= 2) →e(m+n))
Sum of any two prime numbers except the prime number 2 is even.
3. (4 points) Answer the following multiple choice question:
Universe of discourse for the variable x is all students.
C(x): x is taking CSE 260.
M(x): X is a CSE major.
∀x(M(x)∧C(x)) in English is
1
pf2

Partial preview of the text

Download Predicate Logic Answer - Discrete Structures Computer science | CSE 260 and more Quizzes Discrete Structures and Graph Theory in PDF only on Docsity!

CSE 260-

QUIZ-3– Predicate Logic- ANSWERS

(30 points/20 minutes)

NAME:

  1. (8 points) Answer the following true/false.

(a) ∀xP (x) ⇔ ¬∃x¬P (x) True (b) ∃xP (x) ⇔ ¬∀xP (x) False (c) ∀x∃yP (x, y) ⇔ ∃y∀xP (x, y) False (d) ∃!xp(x) ⇔ ∃x(p(x) ∧ ∀y ((x 6 = y) → ¬p(y)) True

  1. (8 points) Let the universe of discourse for the variable n be N (all integers ≥ 0) and p(n)=”n is prime” e(n)= ”n is even.” Write the following in ordinary English (do not say it in terms of n and m): (a) ∀n∃m((¬e(n) ∧ n 6 = m) → e(n + m)) For each odd natural number there is a different natural number sum of which two is even. (b) ∀m∀n((p(m) ∧ p(n) ∧ m 6 = 2 ∧ n 6 = 2) → e(m + n)) Sum of any two prime numbers except the prime number 2 is even.

3. (4 points) Answer the following multiple choice question:

Universe of discourse for the variable x is all students. C(x): x is taking CSE 260. M(x): X is a CSE major. ∀x(M(x) ∧ C(x)) in English is

1

(a) Every student is a CSE major and they all are taking CSE 260. (b) Every CSE student is taking CSE 260. (c) None of the above. Answer is (a)

  1. (10 points) Translate each of the following statements into logical ex- pressions using predicates, quantifiers, and logical connectives. predicates: C(x): x is a CSE 260 student L(x): x loves music Universe of discourse for the variable x is all students. (a) Every student loves music ∀xL(x) (b) No student loves music ∀x¬L(x) (c) Some students love music ∃xL(x) (d) Every CSE 260 student loves music. ∀x(C(x) → L(x)) (e) Some CSE 260 students love music. ∃x(C(x) ∧ L(x))