






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!







Logic CSCE 235, Fall 2008
Defining Propositional Logic - Propositions - Connectives - Truth tables - Precedence of Logical Operators - Usefulness of Logic - Bitwise operations - Logic in Theoretical Computer Science (SAT) - Logic in Programming - Logical Equivalences - Terminology - Truth tables - Equivalence rules
Logic 235, Fall 2008
Logic 235, Fall 2008 Exercise1.1:
c)
(yes.
d)
(yes.
e) x+
(No.)
f) Answer this question. (No.)
Logic 235, Fall 2008 Exercise1.1:
If
then
If
then
If
then
If monkeys can fly, then
Logic 235, Fall 2008 Exercise1.1: Construct a truth table for each of these compound propositions.
a) p ∧ ¬ q^ p q p ∧ ¬ q
Logic 235, Fall 2008 Exercise1.1: Construct a truth table for each of these compound propositions.
a) p ∧ ¬ q^ p q p ∧ ¬ q 0 1 0 1 0 0
Logic 235, Fall 2008 Exercise1.1: Construct a truth table for each of these compound propositions.
c) (p ∨ ¬ q ) → q p q ¬ q p ∨ ¬ q (p ∨ ¬ q) → q 1 1 0 1 1 1 0 1 1 0 0 1 0 0 1 0 0 1 1 0
Logic 235, Fall 2008
a) p
q
q
p^ p q p ∨ q q ∨ p 0 0 0 0 0 1 1 1 1 0 1 1 1 1 1 1 The two columns in the truth table are identical, thus we conclude that p ∨ q ≡ q ∨ p