Professional Documents
Culture Documents
Lect1 Long
Lect1 Long
DISCRETE MATHEMATICS
LECTURE 1
COURSE OUTLINE
Discrete mathematics is devoted to the study of discrete structures used to represent discrete objects.
1. Foundations: Logic
2. Foundations: Quantifiers, Arguments
3. Introduction to proofs
4. Relations and Functions
5. Sequences and Summations
6. Algorithms: Basics
7. Algorithm Analysis
8. Number Theory: Modular Arithmetic, Prime Numbers
9. Number Theory: Fundamental Algorithms
10. Counting and Probability
11. Advanced Counting
12. Recursion and Induction
13. Recurrence Relations
14. Graph Theory and Trees
LOGIC
Has practical applications to the design of computing machines, to the specification of systems, to
programming languages, etc.
PROPOSITIONAL LOGIC
TRUTH VALUE
COMPOUND PROPOSITIONS
One or more existing propositions might be combined via logical operators to build other mathematical
statements → compound propositions
Connectives: The logical operators that are used to form new propositions from two or more existing
propositions
COMPOUND PROPOSITIONS
Conjunction:
“Rebecca’s PC has more than 16 GB free hard disk space, and the processor in Rebecca’s PC runs faster than 1
GHz”
“Rebecca’s PC has more than 16 GB free hard disk space, and its processor runs faster than 1 GHz.”
Disjunction:
“Rebecca’s PC has at least 16 GB free hard disk space, or the processor in Rebecca’s PC runs faster than 1
GHz.”
INCLUSIVE VS EXCLUSIVE OR
Inclusive or: A disjunction is true when at least one of the two propositions is true
“Students who have taken calculus or computer science can take this class.”
Exclusive or: A disjunction is true when only one of the two propositions is true but not both
“Students who have taken calculus or computer science, but not both, can enroll in this class.”
CONDITIONAL STATEMENTS
The statement p → q is called a conditional statement (implication) because p → q asserts that q is true
on the condition that p holds
CONDITIONAL STATEMENTS
“If you get 100% on the final, then you will get an A.”
Interpretations:
If you manage to get a 100% on the final, then you would expect to receive an A.
If you do not get 100% you may or may not receive an A depending on other factors
However, if you do get 100%, but the professor does not give you an A, you will feel cheated.
CONDITIONAL STATEMENTS
Express “p → q”:
“If Maria learns discrete mathematics, then she will find a good job.”
“Maria will find a good job when she learns discrete mathematics.”
“For Maria to get a good job, it is sufficient for her to learn discrete mathematics.”
“Maria will find a good job unless she does not learn discrete mathematics.”
The proposition: p → q
Converse: q → p
Contrapositive: ¬q →¬p
Inverse: ¬p →¬q
BICONDITIONAL STATEMENTS
The statement p ↔ q is called a biconditional statement and expresses that two propositions have the
same truth value
The abbreviation “iff” for “if and only if.”
Has exactly the same truth value as (p → q) ∧ (q → p)
BICONDITIONAL STATEMENTS
TRUTH TABLE
Tautology: A compound proposition that is always true, no matter what the truth values of the
propositional variables that occur in it
p ∨ ¬p
Contradiction: A compound proposition that is always false
p ∧ ¬p
Contingency: A compound proposition that is neither a tautology nor a contradiction
Parentheses are used to specify the order in which logical operators in a compound proposition are to be
applied
(p ∨ q) ∧ (¬r) is the conjunction of p ∨ q and ¬r
¬p ∧ q:
is the conjunction of ¬p and q, namely, (¬p) ∧ q
is not the negation of the conjunction of p and q, namely ¬(p ∧ q)
APPLICATIONS
Sentence:
“You can access the Internet from campus only if you are a computer science major or you are not a freshman.”
APPLICATIONS
PROPOSITONAL EQUIVALENCES
Logically equivalent: Compound propositions that have the same truth values in all possible cases
enables the replacement of a statement with another statement with the same truth value
PROPOSITONAL EQUIVALENCES
De Morgan’s Laws
PROPOSITONAL EQUIVALENCES
p→q ¬p ∨ q
PROPOSITONAL EQUIVALENCES
p ∨ (q ∧ r) (p ∨ q) ∧ (p ∨ r)
PROPOSITONAL EQUIVALENCES
PROPOSITONAL EQUIVALENCES
NEW EQUIVALENCES
NEW EQUIVALENCES - TAUTOLOGY