Discrete Mathematics II: 12 Lectures For Part IA CST 2012/13
Discrete Mathematics II: 12 Lectures For Part IA CST 2012/13
Marcelo Fiore
/1
Motivations
Circuits in hardware Datatypes in programming languages Formal languages in compilers Relations in databases Graphs in algorithms Counting in discrete probability Proof in program correctness Type systems Computability
/2
Discrete Mathematics I
Propositional logic. Predicate logic. Proof. Set theory. Induction.
/3
Chapter 1
Reading list: 1.1 Logical notation 1.2 Patterns of proof 1.3 Mathematical induction The principle of mathematical induction Denition by mathematical induction Tower of Hanoi Suggested exercises: 1.5, 1.7.
/4
Logical Notation
P Q , P & Q , P and Q P Q , P or Q P Q , P implies Q , if P then Q P Q , P iff Q P , P does not hold
/5
x1 , . . . , xn . P(x1 , . . . , xn );
x. P (x) , there exists x such that P (x) ,
x1 , . . . , xn . P(x1 , . . . , xn )
!x. P (x) , there exists a unique x such that P (x)
/6
/7
i=
k(k+1) 2
/8
set f(0) = b
dene the value for f(n + 1) in terms of the values n
/10
Chapter 2
Reading list: 2.1 Sets 2.2 Set laws Suggested exercises: 2.2, 2.8
/11
Sets
Sets and classes are unordered collections.
Examples: , N, N0 , Z, Q, R.
/12
Comprehension:
{ x | P(x) } , { x X | P(x) }
/13