retagged by
1,127 views
2 votes
2 votes
can we solve this T(n) = T(n/2) + 1  using master theorem?
retagged by

1 Answer

Best answer
1 votes
1 votes
Yes. This can be easily done by Master's Theorem.

For applying Master's Theorem to relation of the form,

[T(n) = aT(n/b) + $n^{k}$], where 'k' is degree of 'n' or highest power of 'n'

we need to compare $log_{b}a$ and compare it with 'k;

Here, a = 1, b = 2 and k = 0

So $log_{b}a$ = k and for this condition,

T(n) = O(f(n) * logn) = O(1*log n) = O(log n)
selected by

Related questions

2 votes
2 votes
1 answer
1
0 votes
0 votes
1 answer
2
lucasbbs asked Feb 28, 2022
6,876 views
How do I apply the master theorem in the above recurrence? Please give details about which case and on hiow to solve the asymptotic analysis...
1 votes
1 votes
1 answer
3
1 votes
1 votes
1 answer
4
ItzDc asked Jun 3, 2022
3,026 views
I can't figure out how to proceed and which case it's falling under after calculating h(n)