Docsity

Truth Table Assignments for Discrete Structures in CPSC 289 - Prof. A. Klappenecker, Assignments of Computer Science

Toggle sidebar
bg1
Problem Set 1
CPSC 289 Discrete Structures
Andreas Klappenecker
The assignment is due on Friday, September 5, before class.
Construct a truth table for each of the following compound propositions.
Each truth table should also include all subformulas of the given formula.
For example, constructing the truth table of ¬p∨ ¬qshould list the truth
values for p,q,¬p,¬q, and ¬p∨ ¬q.
1. ((p→q)→(¬q→ ¬p))
2. (((p→q)→(q→r)) →(p→r))
3. ((p↔q)⊕(p↔ ¬q))
4. (((p∧q)∨(p→ ¬q)) ↔(p⊕q))
The remaining exercises are mostly taken from the textbook.
5. Section 1.1, Exercise 42. Argue carefully.
6. Prove the logical equivalences given in Table 8 on page 25 of the text-
book using truth tables.
7. Section 1.2, Exercise 22.
8. For propositions pand q, define p|qto be true if and only if not both
pand qare true. Give logically equivalent formulations of ¬p,p∧q,
p∨q,p⊕q,p→q,p↔qusing compound propositions that involve
only |,pand q(find terms that are as simple as possible). Prove your
results using truth tables.
9. Is the connective |associative, that is, is ((p|q)|r) logically equivalent
to (p|(q|r))? Prove this or find a counter example.
10. Prove by contradiction that 57 is an odd integer. Use the following
facts: (i) An even integer is a multiple of 2; (ii) The integers are totally
ordered by the less or equal relation ≤. (iii) If a,b, and care integers
such that a≤band c > 0, then ac ≤bc. Do not use the fact that
57/2 = 281
2; your argument should only use the above properties of the
integers.
Typeset your answers or neatly print your answers. This is a good opportunity to
learn L
A
T
E
X!
Read chapter 1 in the textbook. Skim through Section 4.1. Read all
lecture notes. Use paper and p encil while reading through this material. When
you read a definition, make sure that you completely understand it.

Partial preview of the text

Download Truth Table Assignments for Discrete Structures in CPSC 289 - Prof. A. Klappenecker and more Assignments Computer Science in PDF only on Docsity!

Problem Set 1 CPSC 289 Discrete Structures Andreas Klappenecker The assignment is due on Friday, September 5, before class.

Construct a truth table for each of the following compound propositions. Each truth table should also include all subformulas of the given formula. For example, constructing the truth table of ¬p ∨ ¬q should list the truth values for p, q, ¬p, ¬q, and ¬p ∨ ¬q.

  1. ((p → q) → (¬q → ¬p))
  2. (((p → q) → (q → r)) → (p → r))
  3. ((p ↔ q) ⊕ (p ↔ ¬q))
  4. (((p ∧ q) ∨ (p → ¬q)) ↔ (p ⊕ q))

The remaining exercises are mostly taken from the textbook.

  1. Section 1.1, Exercise 42. Argue carefully.
  2. Prove the logical equivalences given in Table 8 on page 25 of the text- book using truth tables.
  3. Section 1.2, Exercise 22.
  4. For propositions p and q, define p | q to be true if and only if not both p and q are true. Give logically equivalent formulations of ¬p, p ∧ q, p ∨ q, p ⊕ q, p → q, p ↔ q using compound propositions that involve only |, p and q (find terms that are as simple as possible). Prove your results using truth tables.
  5. Is the connective | associative, that is, is ((p | q) | r) logically equivalent to (p | (q | r))? Prove this or find a counter example.
  6. Prove by contradiction that 57 is an odd integer. Use the following facts: (i) An even integer is a multiple of 2; (ii) The integers are totally ordered by the less or equal relation ≤. (iii) If a, b, and c are integers such that a ≤ b and c > 0, then ac ≤ bc. Do not use the fact that 57 /2 = 28^12 ; your argument should only use the above properties of the integers.

Typeset your answers or neatly print your answers. This is a good opportunity to learn LATEX!

Read chapter 1 in the textbook. Skim through Section 4.1. Read all lecture notes. Use paper and pencil while reading through this material. When you read a definition, make sure that you completely understand it.