retagged by
621 views
2 votes
2 votes
A) T(n) = 2T(root(n)) + 1  ; n>2

     T(n) =1   ; 0 < n <= 2

B) f(n) =n

g(n) = n(1+sin n)

where n is positive integer

which is true?

1.f(n) = O(g(n))

2.f(n) = $\Omega$(g(n))
retagged by

2 Answers

0 votes
0 votes
second one we cannot compare the both bcz at one point f(n) will be greater and at some point of time g(n) will be greater..

Hint: take sign values(0 to 90 enough) and check the both
0 votes
0 votes
Answer of 1st que is O(n)

Related questions

0 votes
0 votes
0 answers
1
garvit_vijai asked Nov 17, 2018
467 views
How to solve the following recurrence relation?T(n) = T(n-6) + n2 , n>7T(n) = 1 , n<= 7
1 votes
1 votes
1 answer
2
aditi19 asked Oct 27, 2018
874 views
how to compute time complexity of this kind of recurrence relation-T(n)=T(n/2)+T(n/4)+T(n/8)+n
2 votes
2 votes
1 answer
4
Manu Thakur asked Aug 18, 2017
1,441 views
Can you please solve this following question further?What will be the time complexity?