jeffgerickson / algorithms

Bug-tracking for Jeff's algorithms book, notes, etc.
7.92k stars 1.02k forks source link

[Oops.] Chapter 2.5, Page 83 recurrence equation wrong #107

Closed jinlv closed 5 years ago

jinlv commented 5 years ago

Please verify that the error is present in the most recent revision before reporting.

Chapter number or note title: Chapter 2.5

Page number: 83

Error description: According to the previous statement: T(n) - T(n-1) = T(n-1) + a The final simplified recurrence is wrong: T(n) = 2T(n-2) + a It should be: T(n) = 2T(n-1) + a

Suggested fix (if any): Should change to: T(n) = 2T(n-1) + a

algo_2 5_p83_error