

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Notes; Class: Discrete Math Structures; Subject: Computer Science; University: University of Texas - San Antonio; Term: Fall 2008;
Typology: Study notes
1 / 3
This page cannot be seen from the preview
Don't miss anything!


8/27/^
CS 2233 Discrete Mathematical Structures -- Carola Wenk
1
8/27/^
CS 2233 Discrete Mathematical Structures -- Carola Wenk
8/27/^
CS 2233 Discrete Mathematical Structures -- Carola Wenk
3
Definition.
Let^ p
be a proposition. The
negation
(“not”) of
p, denoted by ¬
p, has the
opposite truth value than the truth value of p.Read ¬
p^ as: “not
p” or “It is not the case that
p”.
Truth Table:^ p^
¬p T^
Examples:
Negate the following:
8/27/^
CS 2233 Discrete Mathematical Structures -- Carola Wenk
Definition.
Let^ p
and^
q^ be propositions. The
conjunction
(“and”) of
p^ and
q, denoted by
p^ q, is true when both
p^ and
q^ are true and
is false otherwise.Read
p^ q
as: “
p^ and
q”.
Truth Table:^ p^
q^ p
q T^ T
Examples:
Find the conjunction of
p^ and
q:
-^ p: “It is sunny today.”
q: “Today is Monday.”
» “It is sunny today and today is Monday.”The conjunction is true on sunny Mondays (
TT) but it is false
on any non-sunny day (
FT^ or
FF) and it is false on any other
day but Monday (
TF^ or
8/27/^
CS 2233 Discrete Mathematical Structures -- Carola Wenk
5
Definition.
Let^ p
and^
q^ be propositions. The
disjunction
(“inclusive or”) of
p^ and
q,
denoted by
p^ q
, is false when both
p^ and
q
are false and is true otherwise.Read
p^ q
as: “
p^ or^
q”.
Truth Table:^ p^
q^ p
q T^ T
Examples:
Find the disjunction of
p^ and
q:
-^ p: “It is sunny today.”
q: “Today is Monday.”
» “It is sunny today or today is Monday.”The disjunction is true on sunny Mondays (
TT) and on
Mondays (
FT^ or
TT) and on sunny days (
TF^ or
TT). It is only
false on non-sunny days that are not Mondays (
8/27/^
CS 2233 Discrete Mathematical Structures -- Carola Wenk
Definition.
Let^ p
and^
q^ be propositions. The
exclusive or
(“xor”) of
p^ and
q, denoted by
p⊕q, is true when exactly one of
p^ and
q^ is
true, and false otherwise.Read
p⊕q
as: “
p^ xor
q”.
Truth Table:^ p^
q^
p⊕q T^ T
Where is the difference between or and xor? • “Students who have taken calculus or biology can take thisclass.” Is this
p^ q
or^ p⊕
q^?
» “Students who have taken calculus or biology, but not both,can enroll in this class.”Note that “either….or” is supposed to be exclusive, but we oftendon’t use it in the correct way in English.
8/27/^
CS 2233 Discrete Mathematical Structures -- Carola Wenk
7
Definition.
Let^ p
and^
q^ be propositions. The
conditional statement p
→q^ is false when
p^ is
true and
q^ is false, and true otherwise.
p^ is
called the
hypothesis
and^
q^ the
conclusion
Truth Table:^ p^
q^
p→q T^ T
Read
p→q
as: “if
p,^ then
q”^
“p^ implies
q”
“p^ only if
q” ….. many more examples in the book.
Examples: • “If I am elected, then I will lower taxes.”»^ p→
q^ with
p^ “elected” and
q^ “taxes”
-^ p: “It rains.”
q: “We get wet.” » “If it rains, then we will get wet.”» “We will get wet whenever it rains.”» “It rains only if we get wet.”
8/27/^
CS 2233 Discrete Mathematical Structures -- Carola Wenk
Definition.
Let^ p
and^
q^ be propositions. The
biconditional statement
(“iff”)
p→q
is true
when
p^ and
q^ have the same truth value, and false otherwise.
Truth Table:^ p^
q^
p↔q T^ T
Read
p↔q
as: “
p^ if and only if
q”
“p iff q
Example: • “You can take the flight if and only if you buy a ticket.”