3 votes 3 votes what is time comlexity procedure for following recursive equation by substitution method: T(n)= T(n-1)+T(n-2) , if n>=2 =1 , if n=1; =0 , if n=0. Algorithms time-complexity algorithms recurrence-relation + – sumit_kumar asked Jun 25, 2017 • retagged Jul 8, 2022 by Lakshman Bhaiya sumit_kumar 3.1k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
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)) abhishek tiwary answered Jun 30, 2017 abhishek tiwary comment Share Follow See all 0 reply Please log in or register to add a comment.