
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

ECS 20: Discrete Mathematics Spring 2007
Friday, April 6 th, 2007
Truth Tables Logic Operators Bit Operations p q ¬q p ∧ q p ∨ q p ⊕ q p → q p ↔ q x y x ∧ y x ∨ y x ⊕ y T T F T T F T T 1 1 1 1 0 T F T F T T F F 1 0 0 1 1 F T − F T T T F 0 1 0 1 1 F F − F F F T T 0 0 0 0 0
Simple Equivalences Identity: Domination: Idempotent: Negation: Implication: p ∧ T ⇔ p p ∨ F ⇔ p
p ∨ T ⇔ T p ∧ F ⇔ F
p ∨ p ⇔ p p ∧ p ⇔ p
¬(¬p) ⇔ p p ∨ ¬p ⇔ T p ∧ ¬p ⇔ F
(p → q) ⇔ (¬p ∨ q)
Equivalence Laws Commutative: p ∨ q ⇔ q ∨ p p ∧ q ⇔ q ∧ p Associative: (p ∨ q) ∨ r ⇔ p ∨ (q ∨ r) (p ∧ q) ∧ r ⇔ p ∧ (q ∧ r) De Morgan’s: ¬(p ∧ q) ⇔ ¬p ∨ ¬q ¬(p ∨ q) ⇔ ¬p ∧ ¬q Distributive: p ∨ (q ∧ r) ⇔ (p ∨ q) ∧ (p ∨ r) p ∧ (q ∨ r) ⇔ (p ∧ q) ∨ (p ∧ r)
Z: Integers (... , − 1 , 0 , 1 ,... ) N: Natural Numbers (1, 2 , 3 ,... ) Q: Rational Numbers ( pq where p, q ∈ Z, q 6 = 0) R: Real Numbers (rattional & irrational numbers)
Quantifications Statement: ∀x ∀y P (x, y) ⇔ ∀y ∀x P (x, y) True if: P (x, y) is true for every pair x, y. False if: There exists a pair x, y for which P (x, y) is false. Statement: ∀x ∃y P (x, y) True if: For every x there exists a y for which P (x, y) is true. False if: There exists an x such that P (x, y) is false for every y. Statement: ∃x ∀y P (x, y) True if: There exists an x for which P (x, y) is true for every y. False if: For every x, there exists a y for which P (x, y) is false. Statement: ∃x ∃y P (x, y) ⇔ ∃y ∃x P (x, y) True if: There exists a pair x, y for which P (x, y) is true. False if: P (x, y) is false for every pair x, y. Statement: ¬∃x P (x) ⇔ ∀x ¬P (x) True if: P (x) is false for every x. False if: There exists an x for which P (x) is true. Statement: ¬∀x P (x) ⇔ ∃x ¬P (x) True if: There exists an x for which P (x) is false. False if: P (x) is true for every x.
Homework 1 Cheat Sheet page 1