retagged by
3,191 views

1 Answer

0 votes
0 votes
by naive fibonacci algo its sigma(c2pow(n/2))

 

by clever algo its 0(n2)

naive sol

T(n)=T(n-1)+T(n-2)

    >=2T(n-2)+c

   .......

>=2 pow(k)T(n-2.k)+c(2pow(k-1)+2pow(k-2)+.........+1)

sigma(c2pow(n/2))

Related questions

1.3k
views
2 answers
1 votes
Himanshu Goyal asked Oct 12, 2016
1,302 views
What will be the solution of the recurrence relation $T(n)=c+T(n-1)$ using substitution method?c is a constant here.
5.3k
views
1 answers
5 votes
8.5k
views
1 answers
1 votes
K Praveen Kumar asked Jun 13, 2017
8,468 views
How to find time complexity of fibonacci series ? Answer is given O (2^n). But i couldn't get itRecurrence eq : T(n) = T(n-1) + T(n-2) + c.By back substitution i g...
852
views
1 answers
1 votes
LavTheRawkstar asked Jan 30, 2017
852 views
Solve1) T(n) = 8T(n/2) + n2a)T(n)= O(n3) True or False ?b)T(n)=O(2n) True or False ?