8,885 views
4 votes
4 votes
Determine theta bound for recurrence :

$$T(n)=T(n/2)+T(n/4)+T(n/8)+n$$

7 Answers

10 votes
10 votes

It's ⊝(n) because at each level lesser work has to be done. so dominating function(at starting) will be the answer.

2 votes
2 votes

We can see least number of nodes will be created from T(n/2).

Thus T(n/2) defines lower bound of T(n)

Sum of outputs by T(n/2) = n/2+n/4+n/8+.........= n(1/2+1/4+1/8+...)

= n[1/(1-1/2)] =2n

2n<=T(n)

Similarly

maximum number of nodes will be created from T(n/8).

Thus T(n/8) defines upper bound of T(n)

Sum of outputs by T(n/8) = 7n/8+7n/8 2 +7 n/8 3+.........= = n[1/(1-7/8)] =8n

T(n)<=8n

We conclude 2n <= T(n) <= 8n

T(n) = θ(n)

1 votes
1 votes

See the pic, complete solution  is written .

Related questions

0 votes
0 votes
0 answers
1
aniketpatil32 asked May 11, 2019
219 views
T(n)=T(√n) + n I am finding it difficult to solve last step of this recurrence relation . Please help me with expansion of this recurrence relation.
3 votes
3 votes
2 answers
3
Atul Verma12 asked Dec 13, 2016
809 views
solve the recurrence relation:$T(n)=T(\sqrt{n})+\Theta (\log \log n)$My first step was to let $m=\log ⁡n$, making the above:$T(2^m)=T(2^{\frac{m}{2}})+\Theta (\log m)$W...
0 votes
0 votes
1 answer
4
Geet asked Oct 23, 2016
713 views
Find the recurrence relation for the number of binary strings not containing two consecutive zeros or two consecutive ones.