edited by
30,080 views
80 80 votes

Arrange the following functions in increasing asymptotic order:

  1. $n^{1/3}$
  2. $e^n$
  3. $n^{7/4}$
  4. $n \log^9n$
  5. $1.0000001^n$
  1. a, d, c, e, b
  2. d, a, c, e, b
  3. a, c, d, e, b
  4. a, c, d, b, e

5 Answers

Best answer
86 86 votes
$A < C$ and $A < D$ are straight forward.

$E < B$ and $C, D < E$ as $E$ and $B$ are exponential functions and $B$ having a larger base.

Now, we just need to see if $C$ or $D$ is larger.

In $C$ we have a term $n^{3/4}$ and correspondingly in D we have $\log^9n$ (after taking $n$ out).

$n^{3/4}$ is asymptotically larger than $\log^9n$ as when $n = 10^{100}, \log^9 n$ gives $100^9$, while $n^{3/4}$ gives $10^{75} > 100^{37}$ a much higher value and this is true for all higher values of $n$. So, D < C.

Thus, $A$ is correct.
edited by
5 5 votes

Here we've to eliminate options one by one.

check 1st letter of every option,there we've a confusion about A & D, so now let's compare between A & D

$n^{1/3}$  &  $nlog^{9}n$   $\Rightarrow$   $\frac{logn}{3}$  & logn + 9loglogn

So clearly D is bigger than A, i.e option B is out.

Now let's take next two letter in the remaining  options d,c. here we've a confusion b/w d & c,

$nlog^{9}n$  &  $n^{7/4}$   $\Rightarrow$   $log^{9}n$  &  $n^{3/4}$  

take n = $10^{100}$  then  $n^{3/4}$  = $10^{75}$    &    $log^{9}n$ = $10^{18}$ i.e  D<C

Now we can eliminate option C & D also and remaining option A is the answer.

If we Compare B & E ,  $e^{n}$  & $1.0000001^{n}$  (take log base e on both side) 

It becomes n & n.$\ln(1.0000001)$  which clearly shows B>E

Finally a, d, c, e, b  which is option A

4 4 votes

All other options are pretty straight forward, Only problem i faced in comparing C and D option
n^(7/4) and n(log n)^9

take log both side

  1. (7/4)logn and log(n * (log n)^9)
  2. (7/4)logn and log(n) + log(log n)^9)
  3. (3/4)logn and 9log(log n)

now let take log n = k

     4. (3/4)k and 9logk

     5. c1 * k and c2 * log k

as we know that k > log k

hence proved c > k

0 0 votes

Usefull to remember:(a,b are positive)

if a>b>0 then n^a > n^b

AND

if a>b>0 then a^n > b^n

 

let's take:

A = n^(1/3)

B = e^n

C = n^(7/4)

D = n (log n)^9

E = (1.0000001)^n

 

-------------------------------------------------

Step 1: Take logs (log is increasing, so order is preserved)

 

log A = (1/3) * log n

log B = n

log C = (7/4) * log n

log D = log n + 9 log log n

log E = n * log(1.0000001) = c n, where c ≈ 0.0000001 > 0

 

-------------------------------------------------

Step 2: Compare the logs for large n 

 

(1/3) log n << log n + 9 log log n << (7/4) log n << c n << n

 

- Among log-based terms: 1/3 * log n < log n + 9 log log n < 7/4 * log n.

- Linear terms (c n, n) dominate any log terms.

 

-------------------------------------------------

Step 3:

 

n^(1/3) < n (log n)^9 < n^(7/4) < (1.0000001)^n < e^n

Result (smallest to largest growth):

 

A < D < C < E < B

Answer:
Position:
Show:

Related questions

23 23 votes
3 answers 3 answers
12.7k
12.7k views
Ishrat Jahan asked Oct 29, 2014
12,652 views
Consider the code fragment written in C below : void f (int n) { if (n <= 1) { printf ("%d", n); } else { f (n/2); printf ("%d", n%2); } }Which of the following im...
21 21 votes
5 answers 5 answers
12.0k
12.0k views
Ishrat Jahan asked Oct 29, 2014
11,961 views
Consider the code fragment written in C below :void f (int n) { if (n <=1) { printf ("%d", n); } else { f (n/2); printf ("%d", n%2); } }What does f(173) print?$010110101$...
32 32 votes
4 answers 4 answers
12.6k
12.6k views
Ishrat Jahan asked Oct 28, 2014
12,610 views
Consider the following sequence of nodes for the undirected graph given below:$a$ $b$ $e$ $f$ $d$ $g$ $c$$a$ $b$ $e$ $f$ $c$ $g$ $d$$a$ $d$ $g$ $e$ $b$ $c$ $f$$a$ $d$ $b$...
38 38 votes
5 answers 5 answers
22.9k
22.9k views
Ishrat Jahan asked Oct 28, 2014
22,904 views
For the undirected, weighted graph given below, which of the following sequences of edges represents a correct execution of Prim's algorithm to construct a Minimum Span­n...