0 votes 0 votes Algorithms time-complexity asymptotic-notation made-easy-test-series + – Avir Singh asked Nov 28, 2018 • retagged Jul 9, 2022 by Lakshman Bhaiya Avir Singh 586 views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply Magma commented Nov 28, 2018 reply Follow Share b ??? 0 votes 0 votes Avir Singh commented Nov 28, 2018 reply Follow Share Procedure ? 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes We can infer that $f(n) \geq c_1n$ and $g(n) \leq c_2f(n)$, for some $c_1,c_2$. Let $f(n) = c_1n$. This implies that $g(n) \leq c_2c_1n$. Let $c_3 = c_1 \times c_2 \implies g(n) \leq c_n \implies g(n) \in O(n)$. goxul answered Nov 28, 2018 goxul comment Share Follow See all 8 Comments See all 8 8 Comments reply Show 5 previous comments BASANT KUMAR commented Nov 28, 2018 reply Follow Share can you check this.where is wrong?? 0 votes 0 votes goxul commented Nov 28, 2018 reply Follow Share In the question, the first statement doesn't say anything about $g(n)$. 0 votes 0 votes BASANT KUMAR commented Nov 28, 2018 reply Follow Share both of the case possible because it is only saying that g(n)=Of(n).how we consider only one case?? 0 votes 0 votes Please log in or register to add a comment.