1.1-2 Proof by induction recap Flashcards

1
Q

How is induction like proof by programming? (What are the two subroutines)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly