DMA - Tut Week 1
DMA - Tut Week 1
b) p ∧ q: Swimming at the New Jersey shore is allowed and sharks have been spotted near the
shore
c) ¬p ∨ q: Swimming at the New Jersey shore is not allowed or sharks have been spotted near
the shore
d) p → ¬q: If swimming at the New Jersey shore is allowed, then sharks have not been spotted
near the shore
e) ¬q → p: If sharks have not been spotted near the shore, then swimming at the New Jersey
shore is allowed
f) ¬q → ¬p: If sharks have not been spotted near the shore, then swimming at the New Jersey
shore is not allowed
g) p ↔ ¬q: Swimming at the New Jersey shore is allowed if and only if sharks have not been
spotted near the shore
h) ¬p ∧ (p ∨ ¬q): Swimming at the New Jersey shore is not allowed and either swimming at the
New Jersey shore is allowed or sharks have not been spotted near the shore
Problem 2
If B = knight → A = knave
Conclusion: 2 scenarios
Conclusion: 4 scenarios
3. A = knight, B = knave
4. A = knave, B = knight
e) A says “We are both knaves” and B says nothing
If A = knave → his statement = false → they are not both kanves → B = knight
Problem 3
Problem 4
Problem 5
p q r p→r q→r (p → r) ∨ (q → r) p∧q (p ∧ q) → r
T T T T T T T T
T T F F F F T F
T F T T T T F T
T F F F T T F T
F T T T T T F T
F T F T F T F T
F F T T T T F T
F F F T T T F T
=> logically equivalent
Problem 6
a) There is a student at my school who can speak Russian and who know the computer language
C++
∃ x(P(x) ∧ Q(x))
b) There is a student at my school who can speak Russian but who does not know the computer
language C++
∃ x(P(x) ∧ ¬Q(x))
c) Every student at my school either can speak Russian or know the computer language C++
∀ x(P(x) ∨ Q(x))
d) No student at my school can speak Russian or know the computer language C++
∀ x(¬P(x) ∧ ¬Q(x))
Problem 7
If there exists a printer that is both out of service and busy, then there exists a lost printer job
b) ∀p B(p) → ∃j Q(j)
If all printers are busy, then there exists a queued printer job
If there exists a printer job that is both queued and lost, then there exists a printer that is out of
service
If all printers are busy and all printer jobs are queued, then there exists a lost printer job
Problem 8
a) ∀x L(x, "Jerry")
b) ∀x ∃y L(x, y)
c) ∃y ∀x L(x, y)
d) ¬∃x ∀y L(x, y)
e) ∃y ¬L("Lydia", y)
f) ∃y ¬∃x L(x, y)
g) ∃!y ∀x L(x, y)
i) ∀x L(x, x)
Problem 10
This statement is true: For any integer n, we can always find a larger integer m by choosing m =
n^2 + 1
This statement is true: For any integer n, we can always find a larger integer m by choosing m = |
n| + 1. Then, m^2 will be greater than n
c) ∀n∃m (n + m = 0)
This statement is true: For any integer n, we can find an integer m so that n + m = 0 by choosing
m = -n
d) ∃n∀m (nm = m)
g) ∃n∃m (n + m = 4 ∧ n − m = 1)
h) ∃n∃m (n + m = 4 ∧ n − m = 2)
i) ∀n∀m∃p (p = (m + n)/2)
This statement is true: If n and m are both odd or even integers and (m + n) >= 2, then p will be
an integer
Problem 11
1. Every student in this class has taken exactly two mathematics classes at this school
Let A(x) be the predicate "x is a student in this class" and B(x,y) be the predicate "x has
taken y mathematics classes at this school"
Negation in simple English: There is at least one student in this class who has not taken exactly
two mathematics classes at this school. This means they either have taken no mathematics
classes, one mathematics class, or more than two mathematics classes.
Negation in simple English: For every person, there is at least one country other than Libya that
this person has not visited. This means no single person has visited every country in the world
except Libya.
Quantifier: ∀x¬∀mC(x,m)
Negation: ∃x∀mC(x,m)
Negation in simple English: There exists at least one person who has climbed every mountain in
the Himalayas.