1.1-2 Proof by induction recap Flashcards
1
Q
How is induction like proof by programming? (What are the two subroutines)
A
2
Q
How does the induction hypothesis work
A
Assuming P(0) (base case) P(1), … P(n) is true, use that to prove P(n+1)
3
Q
How does strong induction differ
A
- In normal induction P(n) is used to prove P(n+1)
- Using strong induction P(0)…P(n) can be used to prove P(n+1)
- Same logic
- Useful for recursive functions