Computer Science, asked by pratyunsaini6393, 1 year ago

The running time of an algorithm is given by t(n) = t(n-1) + t(n-2) t(n-3), if n > 3 = n, otherwise then what should be the relation between t(1), t(2) and t(3), so that the order of the algorithm is constant ?

Answers

Answered by yenula
2

Explanation:

The running time of an algorithm is given by: T(n)=T(n−1)+T(n−2)−T(n−3), if n>3 = n, otherwise Then what should be the relation ...

Similar questions