Truth Tables For:: Discrete Structures
Truth Tables For:: Discrete Structures
Discrete Structures
BSCS (3 Credit Hour)
Lecture # 02
Truth table for ~ p ∧ (q ∨ ~ r) Truth table for (p ∨ q) ∧ ~ (p ∧ q) Double Negative Property ~(~p) ≡ p
p q r ~r q∨~ ~p ~ p ∧ (q ∨ ~ p q p ∨ q p ∧ ~ (p∧q) (p ∨ q) ∧ ~ (p ∧ p ~p ~(~p)
r r) q q)
LAWS OF LOGIC
Given any statement variables p, q and r, a tautology t and Distributive Law: p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r) Double Negation Law: ~ (~p) ≡ p
a contradiction c, the following logical equivalences hold: p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r)
Idempotent Laws: p∧p≡p
Commutative Laws: p∧q≡q∧p Identity Laws: p∧t≡p p∨p≡p
p∨q≡q∨p p∨c≡p
De Morgan’s Laws: ~(p ∧ q) ≡ ~p ∨ ~q
Associative Laws: (p ∧ q) ∧ r ≡ p ∧ (q ∧ r) Negation Laws: p∨~p≡t ~(p ∨ q) ≡ ~p ∧ ~q
(p ∨ q) ∨ r ≡ p ∨ (q ∨ r) p∧~p≡c
Absorptions Laws: p ∨ (p ∧ q) ≡ p
p ∧ (p ∨ q) ≡ p