Fibonacci Meets Euclid

What happens when we apply Euclid's algorithm to a consecutive pair of Fibonacci numbers, F(k+2) and F(k+1)?

Example: EUCLID(144,89) = EUCLID(89,55).

How many recursive calls? Exactly k!

Thus, the worst-case time to compute EUCLID(a,b) can be at least tex2html_wrap_inline256 (lower bound on worst case).


next up previous
Next: Fibonacci Upper Bound Up: EUCLID'S ALGORITHM Previous: Inverse Fibonacci