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

SC/MATH 1019B - HOMEWORK 1 Discrete Math for Computer Science with Verified Solutions, Exams of Discrete Mathematics

SC/MATH 1019B - HOMEWORK 1 Discrete Math for Computer Science with Verified Solutions

Typology: Exams

2024/2025

Available from 10/25/2024

star_score_grades
star_score_grades 🇺🇸

3.6

(19)

1.7K documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1
SC/MATH 1019B - HOMEWORK 1
DUE SEPTEMBER 20, 2024
Solutions to the problems below must be brought to class on September 20, 2018.
Solutions may by typed or neatly hand written. You must clearly indicate which
problem you are solving. All solutions must be fully justified.
# 1. Show that the conditional statement (p q) (p q) is a tautology both
(a)
by using truth tables,
(b)
and by applying a chain of logic identities.
In the truth table
p
q
p q p q
(p q) (p q)
T T T T T
T
F F
T T
F
T
F
T T
F F F F
T
we see that the last column which corresponds to (p q) (p q) contains only
T . Therefore (p q) (p q) is a tautology.
Alternatively, the chain of logical equivalences
(p q) (p q) ≡ ¬(p q) (p q)
(¬p
∨ ¬q)
(p
q)
≡ ¬p ∨ ¬q p q
(¬p p) (¬q q)
T
T
T
also demonstrates that (p q) (p q) is a tautology.
# 2. Find the negation of the quantified statement
x, y
(x <
y)
(x >
2)
(xy =
2)
where the symbol ¬ does not appear in the final answer.
¬
x,
y
(x
<
y)
(x
>
2)
(xy
=
2)
!
x, y¬
(x
<
y)
(x
>
2)
(xy
=
2)
≡ ∀x,
y¬
¬
(x
<
y)
(x
>
2)
(xy
=
2)
≡ ∀x, y
(x <
y)
(x >
2)
(xy
/
=
2)
pf2

Partial preview of the text

Download SC/MATH 1019B - HOMEWORK 1 Discrete Math for Computer Science with Verified Solutions and more Exams Discrete Mathematics in PDF only on Docsity!

1

SC/MATH 1019B - HOMEWORK 1

DUE SEPTEMBER 20, 2024

Solutions to the problems below must be brought to class on September 20, 2018. Solutions may by typed or neatly hand written. You must clearly indicate which problem you are solving. All solutions must be fully justified. # 1. Show that the conditional statement ( pq ) → ( pq ) is a tautology both (a) by using truth tables, (b) and by applying a chain of logic identities. In the truth table p q pq pq ( pq ) → ( pq ) T T T T T T F F T T F T F T T F F F F T we see that the last column which corresponds to ( pq ) → ( pq ) contains only T. Therefore ( pq ) → ( pq ) is a tautology. Alternatively, the chain of logical equivalences ( pq ) → ( pq ) ≡ ¬( pq ) ∨ ( pq ) ≡ (¬ p ∨ ¬ q ) ∨ ( pq ) ≡ ¬ p ∨ ¬ qpq ≡ (¬ pp ) ∨ (¬ qq ) ≡ TTT also demonstrates that ( pq ) → ( pq ) is a tautology. # 2. Find the negation of the quantified statement ∃ x,y ( x < y ) ∨ ( x > 2) → ( xy = 2) where the symbol ¬ does not appear in the final answer. ¬ ∃ x,y ( x < y ) ∨ ( x > 2) → ( xy = 2)

≡ ∀ x,y ¬ ( x < y ) ∨ ( x > 2) → ( xy =

≡ ∀ x,y ¬ ¬ ( x < y ) ∨ ( x > 2) ∨ ( xy = 2) ≡ ∀ x,y ( x < y ) ∨ ( x > 2) ∧ ( xy /= 2)

2 SC/MATH 1019B - HOMEWORK 1 DUE SEPTEMBER 20, 2018 # 3. Give an example of a statement P ( x, y, z ), where the domain for each of the variables x , y , and z consists of all real numbers, so that (i) ∀ x,y,zP ( x, y, z ) is true, (ii) but ∀ x,y,zP ( x, y, z ) is false. You must prove the example you give satisfies (i) and (ii). We can take P ( x, y, z ) to be the statement that x + y + z = 0. To prove that ∀ x,y,zP ( x, y, z ) we take arbitrary real numbers x and y , then let z = − xy. We see that x + y + z = 0 and we have demonstrated that ∀ x,y,zP ( x, y, z ) is true. To show that ∀ x,y,zP ( x, y, z ) is false we can show that negation is true. That is, we show that ∃ x,y,z ¬ P ( x, y, z ) is true. To do this we can take x = 0, then for any arbitrary real number y we must find a z such that y + z /= 0. It works to take z = − y + 1.