Data Structure Lect13
Data Structure Lect13
Data Structure Lect13
Lecture 13
Topics
Merge Sort
Then we replace both of these Fibonacci numbers by the sum of two previous Fibonacci
numbers, and so on.
When f1 or f0 arises, it is replaced by its value.
At each stage of the recursion, until f1 or f0 is obtained, the number of Fibonacci numbers
to be evaluated has doubled.
Algorithm for Fibonacci Series
if n = 0 then return 0
else if n = 1 then return 1