retagged by
2,200 views
1 1 vote
.Let S1= ∑nr/2r (r=0 to logn-1) .S2= ∑r2r (r=0 to logn-1)

what will be s1 and and s2 after expension

2 Answers

1 1 vote

s1: part I

s1:part II

s2:

Sorry for the horizontal image. I am not able to rotate it here!!

1 1 vote

no need to solve it just see the leading term in s1 and s2 .

In s1 as the value of r is increased the terms keep on decreasing due to exponential function in denominator. So the term where r =1 I.e n/2 will be the leading and thus it will be the order of n. 

In S2 the last term where r=logn-1 is the leading term as exponential function is present in numerator so if you simplify it you would get Nlogn.

Position:
Show:

Related questions

0 0 votes
1 1 answer
295
295 views
arbpass asked Sep 11, 2025
295 views
How to check if f(n) is polynomially greater than g(n)?
0 0 votes
1 answers 1 answer
2.9k
2.9k views
Shreya2002 asked Oct 27, 2022
2,858 views
How to solve this recurrence relationT(n)= T(0.09n) + T(0.91n) + cnwhere c is constant and T(1)=1options are-
1 1 vote
2 answers 2 answers
1.8k
1.8k views
srestha asked May 10, 2019
1,790 views
What is the solution of recurrence relation$T\left ( n \right )=T\left ( n-1 \right )+n$
2 2 votes
2 2 answers
10.1k
10.1k views
pradeepchaudhary asked Jul 14, 2018
10,137 views
Q.6 The time complexity of an algorithm T(n), where n is the input size, is given by— T(n)= T(n-1) + 1/n, if n>1 = 1, otherwise.The order of the algorithm is—(a)...