COP 4531: Lecture 4
Learning objectives
After this class, you should be able to:
- Given a recurrence, solve it using the method of substitution, and prove the correctness of your solution using induction.
Reading assignment
- CLR: Chapter 4, up to (and including) section 4.1.
- CLR: None.
Exercises and review questions
- Questions on current lecture's material
- Exercise 4.1-1.
- Exercise 4.1-3.
- Exercise 4.1-5.
- (Post your solution on the discussion board) In the paragraph just before the sub-section "Making a good guess", the text uses two cases, for
n = 2
andn = 3
, to deal with the base case. Why is it not sufficient to prove the result forn = 2
? Give other possible sets of base cases (excludingn = 1
,n = 2
, andn = 3
).- Questions on next lecture's material
- None.