Recent questions tagged recurrence-relation

0 0 votes
1 1 answer
659
659 views
which formula to use in master theorm
0 0 votes
2 2 answers
4.6k
4.6k views
Give asymptotic upper and lower bound for $T(n)$ given below. Assume $T(n)$ is constant for $n \leq 2$. $T(n) = 4T( \sqrt{n} ) + \lg^2n$$T(n) = \theta (\lg ( \lg ^2 n) \l...
0 0 votes
1 1 answer
1.6k
1.6k views
Consider the following statements:The running time of dynamic programming algorithm is always $\theta(\rho)$ where $\rho$ is number of subproblemsWhen a recurrence relati...
47 47 votes
3 answers 3 answers
18.9k
18.9k views
For constants $a \geq 1$ and $b>1$, consider the following recurrence defined on the non-negative integers:$$T(n) = a \cdot T \left(\dfrac{n}{b} \right) + f(n)$$ Which on...
60 60 votes
15 answers 15 answers
51.6k
51.6k views
Consider the following recurrence relation.$$T(n) = \begin{cases} T(n/2) + T(2n/5) + 7n & \text{if } n 0 \\ 1 & \text{if } n = 0 \end{cases}$$Which one of the following ...
1 1 vote
1 1 answer
575
575 views
The recurrence relation $T(n)=7T(n/7)+n$ has the solution:$O(n)$$O(logn)$$O(nlog(n))$$O(n^2)$
1 1 vote
1 1 answer
1.6k
1.6k views
Consider the algorithm that solves problems of size $n$ by recursively solving two sub problems of size $n-1$ and then combining the solutions in constant time. Then the ...
1 1 vote
0 0 answers
624
624 views
Given $r_{12}=0.6, r_{13}=0.5$ and $r_{23}=0.8,$ the value of $r_{12.3}$ is :$0.47$$0.40$$0.74$$0.64$
1 1 vote
2 2 answers
900
900 views
Which of the following is correct recurrence for worst case of QuickSort?$T(n)=T(n-4)+T(n-2)+O(1)$$T(n)=T(n-1)+T(0)+O(n)$$T(n)=2T(n/2)+O(n)$$T(n)=4T(n/2)+O(n)$
0 0 votes
0 0 answers
282
282 views
True/False Question :The number of ways a $2\times 8$ rectangle can be tiled with rectangular tiles of size $2\times 1$ is $34$.
0 0 votes
1 1 answer
2.0k
2.0k views
Solve the recurrence relation for the number of rounds in the tournament described in question $14.$
0 0 votes
1 1 answer
956
956 views
How many rounds are in the elimination tournament described in question $14$ when there are $32$ teams?
0 0 votes
2 2 answers
2.5k
2.5k views
Suppose that there are $n = 2^{k}$ teams in an elimination tournament, where there are $\frac{n}{2}$ games in the first round, with the $\frac{n}{2} = 2^{k-1}$ winners pl...
0 0 votes
1 1 answer
945
945 views
Give a big-O estimate for the function $f$ given below if $f$ is an increasing function.$f (n) = 2f (n/3) + 4 \:\text{with}\: f (1) = 1.$
1 1 vote
2 2 answers
1.2k
1.2k views
Find $f (n)$ when $n = 3k,$ where $f$ satisfies the recurrence relation $f (n) = 2f (n/3) + 4 \:\text{with}\: f (1) = 1.$
0 0 votes
1 1 answer
686
686 views
Give a big-O estimate for the function $f$ in question $10$ if $f$ is an increasing function.
0 0 votes
1 1 answer
701
701 views
Find $f (n)$ when $n = 2^{k},$ where $f$ satisfies the recurrence relation $f (n) = f (n/2) + 1 \:\text{with}\: f (1) = 1.$
0 0 votes
1 1 answer
746
746 views
Suppose that $f (n) = f (n/5) + 3n^{2}$ when $n$ is a positive integer divisible by $5, \:\text{and}\: f (1) = 4.$ Find$f (5)$$f (125)$$f (3125)$
0 0 votes
1 1 answer
1.1k
1.1k views
Suppose that $f (n) = 2f (n/2) + 3$ when $n$ is an even positive integer, and $f (1) = 5.$ Find$f (2)$$f (8)$$f (64)$$(1024)$
0 0 votes
1 1 answer
779
779 views
Suppose that $f (n) = f (n/3) + 1$ when $n$ is a positive integer divisible by $3,$ and $f (1) = 1.$ Find$f (3)$$f (27)$$f (729)$
0 0 votes
0 0 answers
602
602 views
How many operations are needed to multiply two $32 \times 32$ matrices using the algorithm referred to in Example $5?$
0 0 votes
0 0 answers
409
409 views
Determine a value for the constant C in Example $4$ and use it to estimate the number of bit operations needed to multiply two $64$-bit integers using the fast multiplica...
0 0 votes
1 1 answer
675
675 views
0 0 votes
0 0 answers
487
487 views
Multiply $(1110)_{2} \:\text{and}\: (1010)_{2}$ using the fast multiplication algorithm.