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)) Algorithms recurrence-relation asymptotic-notation + – A_i_$_h asked Oct 16, 2017 • retagged Jun 23, 2022 by Lakshman Bhaiya A_i_$_h 621 views answer comment Share Follow See all 8 Comments See all 8 8 Comments reply Show 5 previous comments sourav. commented Oct 16, 2017 reply Follow Share @arjun sir : I am really sorry to comment about other question here , but this https://gateoverflow.in/105762/testbook question needs clarfication as answer suggested is $50-50$ .Confused what will be correct. sir please see my comment there.I will make sure that i will delete my comment here afterwards :) 0 votes 0 votes A_i_$_h commented Oct 17, 2017 reply Follow Share @sourav thanku :) 0 votes 0 votes A_i_$_h commented Oct 17, 2017 reply Follow Share @arjun sir...okay :) 0 votes 0 votes Please log in or register to add a comment.
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 Deepak Raj 1 answered Oct 17, 2017 Deepak Raj 1 comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes Answer of 1st que is O(n) Deepak Raj 1 answered Oct 18, 2017 Deepak Raj 1 comment Share Follow See 1 comment See all 1 1 comment reply A_i_$_h commented Oct 19, 2017 reply Follow Share @deepak by converting to a form and applying masters theorem we get O(n) but in that case the condition that it works only for n>2 isnt considered right? 0 votes 0 votes Please log in or register to add a comment.