retagged by
707 views
1 votes
1 votes

Q). Consider the following functions

$f_1 = n^{\frac{4}{3}}$

$f_2=2^{2^n}$

$f_3= 2^{n^2}$

$f_4= n!$

$f_5=2^n$

Which of the following is true?

A). $f_1$ is $\Omega(f_2)$

B). $f_2$ is $O(f_3)$

C). $f_1<f_5<f_4<f_2<f_3$

D). $f_4$ is $O(f_3)$

retagged by

2 Answers

3 votes
3 votes

Function                      Take log in every function

f1=n4/3                                                         4/3 log n    

f2 = 22^n                                                                   2n

f3=2n^2                                                            n2 

f4 = n!                                                           n log n

f5=2n                                                                   n

Logarithmic growth rate of  f1  is less than all other functions growth rate 

Linear growth rate of f5  is more than logarithmic growth rate of f1

 Linear growth rate of f4  is more than logarithmic growth rate of f5

Non linear growth rate of  f3 is more than linear growth rate of f4

Exponential growth rate of f2 is more than non linear growth rate of f3

So, f1 <  f < f4 < f3 < f2

So, ans will be (D)

edited by
2 votes
2 votes
I think option D is true. first of all . 1 is a linear function, secondly in exponential we have 2 functions that are f4,f5. in which n^n has a much bigger growth than 2^n. and then we have 2 super exponential functions that are f2 and f3.  as 2^n has a much greter growth than n^2. f3=O(f2). now just compare n^n and 2^ n^2.

taking log both side. nlogn =n^2 log 2

nlogn=n2. so option d .
Answer:

Related questions

0 votes
0 votes
1 answer
1
Tuhin Dutta asked Dec 12, 2017
721 views
In the context of merge sort, which of the following are true?$1.\ T(n)\ =\ o(n^2)\\ 2.\ T(n)\ =\ O(n^2)\\3.\ T(n)\ =\ \omega(n)\\4.\ T(n)\ =\ \Omega(n) $
0 votes
0 votes
1 answer
2
saumya mishra asked Jun 26, 2018
346 views
How to prove these type of questions???
0 votes
0 votes
1 answer
3
shivanisrivarshini asked Oct 7, 2016
500 views
If f(n)=O(g(n)) for f,g are non decreasing functions ,thenf(n)*log2(f(n)c) =O(g(n) * log2g(n)) , c is power of f(n) isa)Always trueb) Neverc) Sometimes true , sometimes ...
1 votes
1 votes
1 answer
4
Payal Rastogi asked Nov 13, 2015
431 views