You're viewing a comment by Madars and its responses.

Madars Permalink
July 07, 2009, 12:58

Richie: your point about throwing the results away is valid when multiple calls to LinearFibonacci are made. However, it seems that Peter considers only the performance of single call to LinearFib; by modifying LinearFib according to your suggestion the running time will still be quadratic.

However your point is noted when the application requires multiple Fibonacci numbers - dropping previously computed results is a bit foolish then.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "apple_147": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.