Recent questions tagged recurrence-relation

0 0 votes
1 answers 1 answer
776
776 views
0 0 votes
1 1 answer
1.2k
1.2k views
Consider the following function:function X(n,r) { if(r==0 or n == r) then return 1; else return (X(n-1,r-1,) + X(n-1,r)); }Find the worst case time complexity of function...
0 0 votes
1 1 answer
850
850 views
$T\left ( n \right )= 8T\left ( \frac{n}{2} \right )+\left ( n\cdot logn \right )^{2.99}$Also can $\mathcal{O}(n^{3})$ be an upper bound to above recurrence relation?
3 3 votes
2 2 answers
1.3k
1.3k views
Let $$T(n)=\sqrt{n} \cdot T(\sqrt{n})+n$$What will be asymptotic bound on $T(n) ?$$\Theta(\sqrt{n} \log n)$$\Theta(\log \log n)$$\Theta(n \log \log n)$$\Theta(\sqrt{n} \l...
0 0 votes
1 1 answer
736
736 views
Solve the following recurrences using recursion tree method and write the asymptotic time complexity T(n)=T(n/2)+n^2
4 4 votes
1 1 answer
998
998 views
What is the solution to the following recurrence?\[T(n)=\left\{\begin{array}{ll}1 & \text { if } n \leq 10, \\\sqrt{n} \cdot T(\sqrt{n})+n & \text { if } n>10.\end{array}...
24 24 votes
4 4 answers
17.2k
17.2k views
The Lucas sequence $L_{n}$ is defined by the recurrence relation:\[L_{n}=L_{n-1}+L_{n-2}, \quad \text { for } \quad n \geq 3,\]with $L_{1}=1$ and $L_{2}=3$.Which one of t...
0 0 votes
1 1 answer
2.4k
2.4k views
The Lucas sequence $L_n$ is defined by the recurrence relation:$L_n=L_{n-1}+L_{n-2}$, for $n \geq 3$ with $L_1=1$ and $L_2=3$.Which one of the options given is TRUE?$L_n=...
1 1 vote
0 0 answers
1.4k
1.4k views
Can anyone solve this recurrence relation T(n) = 3T(n-1) + O(n^2)Its ans is O(3^n n^2)
22 22 votes
1 1 answer
4.1k
4.1k views
What is the recurrence relation for the ternary strings of length $n$ which can be constructed using 0,1 or 2 only such that the number of 0’s and number of 1's is odd ...