Docsity

Practice Problems for Exam 1 - Discrete Structures | CMSC 250, Exams of Discrete Structures and Graph Theory

Toggle sidebar
bg1
250, practice exam-I
1. Is qd2e<l√2m? EXPLAIN.
2. What is P4
i=1 d(i+ 10)/(i+ 1)e? (note- each term has a ceiling.)
3. For each of the following arguments, either (1) write valid and show it is valid
using only the rules of logic on the sheet (which are at the back of the exam),
or (2) Write not valid and show why using rows of a truth table.
(a)
p1 : p1→p2
p2 : p2→p3
p3 : p3→p4
p4 : p4→p5
p5 : p5→p6
p6 : p6→p7
p7 : p7→p1
conclusion : p2→p1
(b)
p1 : p1∨p2∨ ¬p3
p2 : ¬p1∨p3
p3 : p3→p1
conclusion ¬p1∨ ¬p2
4. For this problem the symbols ≤,−, and || (the absolute value sign) have their
usual meaning. for the sentence below, give (1) a non-empty domain where the
sentence is true, and (2) a non-empty domain where the sentence is false. all
domains given should be subsets of r(the reals). Justify your answers (one brief
sentence each).
(∃z)(∀x)(∀y)[|x−y| ≤ z].
5. Prove the following.
(a) for all naturals x, if x5≡0 (mod 3) then x≡0 (mod 3).
(b) show that 31/5is irrational. you may not use unique factorization. (hint-
use part a)
1
pf3
pf4
pf5

Partial preview of the text

Download Practice Problems for Exam 1 - Discrete Structures | CMSC 250 and more Exams Discrete Structures and Graph Theory in PDF only on Docsity!

250, practice exam-I

  1. Is

√ d 2 e <

⌉ ? EXPLAIN.

  1. What is

∑ 4 i=1 d(i^ + 10)/(i^ + 1)e? (note- each term has a ceiling.)

  1. For each of the following arguments, either (1) write valid and show it is valid using only the rules of logic on the sheet (which are at the back of the exam), or (2) Write not valid and show why using rows of a truth table. (a)

p1 : p 1 → p 2 p2 : p 2 → p 3 p3 : p 3 → p 4 p4 : p 4 → p 5 p5 : p 5 → p 6 p6 : p 6 → p 7 p7 : p 7 → p 1

conclusion : p 2 → p 1

(b)

p1 : p 1 ∨ p 2 ∨ ¬p 3 p2 : ¬p 1 ∨ p 3 p3 : p 3 → p 1

conclusion ¬p 1 ∨ ¬p 2

  1. For this problem the symbols ≤, −, and || (the absolute value sign) have their usual meaning. for the sentence below, give (1) a non-empty domain where the sentence is true, and (2) a non-empty domain where the sentence is false. all domains given should be subsets of r (the reals). Justify your answers (one brief sentence each).

(∃z)(∀x)(∀y)[|x − y| ≤ z].

  1. Prove the following.

(a) for all naturals x, if x^5 ≡ 0 (mod 3) then x ≡ 0 (mod 3). (b) show that 3^1 /^5 is irrational. you may not use unique factorization. (hint- use part a)

  1. Mark as always true (a), sometimes true (s), or never true (n), for all real numbers x and all sequences ai: (a) x ≤ dxe (b) dxe − 1 ≤ x (c) dxe − 1 < x ≤ dxe (d) bxc < dxe (e)

∑n i=1 i^ =^ n^ +^

∑n− 1 i=1 i (f)

∑n i=1 ai^ =^

∑n− 1 i=0 ai (g)

∑n j=0 aj^ =^

∑n+ k=1 ak−^1

  1. The next term in the sequence 1, 3, 5, 7, ... is

(a) certainly 9 (b) possibly 9 (c) certainly 11 (d) possibly 11 (e) both b and d (f) none of the above

  1. In class, a property P ( ) was said to be hereditary (over the natural numbers) if for all n, P (n) → P (n + 1). For each of the following, say whether it is hereditary (DO NOT JUSTIFY): (a) P(n) means n is prime (b) P(n) means n is odd (c) P(n) means 1 + ... + n = n(n + 1)/ 2 (d) P(n) means n is either 0 or 1 or prime or composite (e) P(n) means n is irrational (f) P(n) means n^2 + (n + 1)^2 = (n + 2)^2
  2. The only way a conditional statement P → Q can be false is

(a) P is false (b) Q is true (c) P is true and Q is false (d) none of the above

RULES YOU CAN USE IN PROOFS OF VALIDITY

Given any statement variables p, q, and r, a tautology t and a contradiction c, the following logical equivalences hold:

  1. Commutative laws: p ∧ q ≡ q ∧ p p ∨ q ≡ q ∨ p
  2. Associative laws: (p ∧ q) ∧ r ≡ p ∧ (q ∧ r) (p ∨ q) ∨ r ≡ p ∨ (q ∨ r)
  3. Distributive laws: p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r) p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r)
  4. Identity laws: p ∧ t ≡ p p ∨ c ≡ p
  5. Negation laws: p∨ ∼ p ≡ t p∧ ∼ p ≡ c
  6. Double Negative law: ∼ (∼ p) ≡ p
  7. Idempotent laws: p ∧ p ≡ p p ∨ p ≡ p
  8. DeMorgan’s laws: ∼ (p ∧ q) ≡∼ p∨ ∼ q ∼ (p ∨ q) ≡∼ p∧ ∼ q
  9. Universal bounds laws: p ∨ t ≡ t p ∧ c ≡ c
  10. Absorption laws: p ∨ (p ∧ q) ≡ p p ∧ (p ∨ q) ≡ p
  11. Negations of t and c: ∼ t ≡ c ∼ c ≡ t

MORE RULES YOU CAN USE

Modus Ponens Modus Tollens Elimination p ∨ q p ∨ q p → q p → q ∼ q ∼ p p ∼ q Therefore p Therefore q Therefore q Therefore ∼ p Conjunction p Transitivity p → q q q → r Therefore p ∧ q Therefore p → r Generalization p q p ∨ q Therefore p ∨ q Therefore p ∨ q Proof by p → r Division q → r into Cases Therefore r Specialization p ∧ q p ∧ q Contradiction ∼ p → c Therefore p Therefore q Rule Therefore p

EVEN MORE RULES!!

Definition p → q ≡ ∼ p ∨ q of Implication ∼ (p → q) ≡ p∧ ∼ q Definition of A ↔ B ≡ (A → B) ∧ (B → A) Biconditional ∼ (A ↔ B) ≡ (A∧ ∼ B) ∨ (B∧ ∼ A) Negation of ∼ ∀x P (x) ≡ ∃x ∼ P (x) Quantifiers ∼ ∃x P (x) ≡ ∀x ∼ P (x) Universal ∀x ∈ D, P (x) → Q(x) Modus Ponens P (a) → Q(a) Universal ∀x ∈ D, P (x) → Q(x) Modus Tollens ∼ Q(a) → ∼ P (a) Universal Instantiation ∀x ∈ D, P (x) → P (a) (Needs Nonempty Domain) Existential Generalization P (a) where a ∈ D → ∃x ∈ D, P (x) Universal Generalization P (a) where a ∈ D → ∀x ∈ D, P (x) (Needs a not special) Existential Instantiation ∃x ∈ D, P (x) → P (a) where a ∈ D (Needs a not specia

MISC

Theorem 4.1.

∑n k=m ak^ +^

∑n k=m bk^ =^

∑n k=m(ak^ +^ bk) Theorem 4.1.1 c ·

∑n k=m ak^ =^

∑n k=m(c^ ·^ ak) Theorem 4.1.

∏n k=m ak^ ·^

∏n k=m bk^ =^

∏n k=m(ak^ ·^ bk) Theorem 4.2.

∑m i=1 i^ =^

m(m+1) 2 Theorem 4.2.

∑n i=0 r

i (^) = rn+1− 1 r− 1