1
snick snack
CPSC 121: Models of Computation 2016W2
Revisiting Induction Steve Wolfman, based on work by Patrice Belleville and others
1
Outline
- Prereqs and Learning Goals
- Problems and Discussion
– Introductions – Odd Numbers – Horse Colours – CS Induction: Duplicate Detection, Binary Search, MergeSort – More examples
- Next Lecture Notes
2
Learning Goals: Pre-Class
By the start of class, you should be able to:
– Given a theorem to prove and the insight into how to break the problem down in terms of smaller problems, write out the skeleton of an inductive proof including: the base case(s) that need to be proven, the induction hypothesis, and the inductive step that needs to be proven.
3
Learning Goals: In-Class
By the end of this unit, you should be able to:
– Formally prove properties of the non-negative integers (or a subset like integers larger than 3) that have appropriate self-referential structure— including both equalities and inequalities—using either weak or strong induction as needed. – Critique formal inductive proofs to determine whether they are valid and where the error(s) lie if they are invalid.
4
Outline
- Prereqs and Learning Goals
- Problems and Discussion
– Introductions – Odd Numbers – Horse Colours – CS Induction: Duplicate Detection, Binary Search, MergeSort – More examples
- Next Lecture Notes
5
Worked Problem: How Many Introductions?
Problem: n people would like to introduce themselves to each other. How many introductions does it take? For 2 people? For 3 people? For 4 people? For 5 people? … For n people?
Sound familiar? Let’s prove it.
6