Hi, can someone help with the fibonacci series. In lecture 13 of dynamic programming professor has said fib(0) and fib(1) are 1 how is that.as fib(0) should be zero. i am really confused. thanks in advance
fib(0)=0 and fib(1)=1
but he took fib(0)1 as 1 how ?
that is how define fibonacci series f(0)=1,f(1)=1; after that f(n)=f(n-1)+f(n-2);
Wikipedia would probably be a good place to check to learn about finbonacci sequences.
thank you smith. will check it on wikipedia..
fib(0) is usually defined as being equal to 0 and fib(1) as being equal to 1. But, for any particular assignment or exercise, it is usually a good idea to, at first, try using the definition specified by that assignment or exercise. But, in cases where the author of an exercise seems to have used a non-standard definition of a term, and is available for answering questions, the best approach might be to first check various sources to verify that the definition is non-standard, and, if that turns out to be the case, then to ask why a non-standard definition was used.
Join our real-time social learning platform and learn together with your friends!