I have the following reccurence relation:
T(n) = T(n-1)+ T(n-2) + 1
I tried to expand it but it didn't get me anywhere and I'm stuck. Can someone help please?
I have the following reccurence relation:
T(n) = T(n-1)+ T(n-2) + 1
I tried to expand it but it didn't get me anywhere and I'm stuck. Can someone help please?
expand it like t(n-1)=t(n-2)+t(n-3) and t(n-2)=t(n-3)+t(n-4)
it will give 2+4+8+........2^n=O(2^n) solving gp