UGC-NET Jun 2014 · Asymptotic Analysis & Recurrences

MCQ · 2 marks · Problem PROG-DIVC-0028

Given the following equalities : $E_{1}: n^{K+\in} + n^{K} \lg n = \theta (n^{K+\in})$ for all fixed $K$ and $\in, K \geq 0$ and $\in >0$. $E_{2}:n^{3}2^{n}+6n^{2}3^{n}=O (n^{3}2^{n})$. Which of the following is true ?
  1. A
    $E_{1}$ is correct and $E_{2}$ is correct.
  2. B
    $E_{1}$ is correct and $E_{2}$ is not correct.
  3. C
    $E_{1}$ is not correct and $E_{2}$ is correct.
  4. D
    $E_{1}$ is not correct and $E_{2}$ is not correct.

Solve it on GATE DA practice →More Searching & Sorting Algorithms problems

Show the worked solution\(E_1\): since \(\lg n=o(n^{\epsilon})\) for any \(\epsilon>0\), \(n^K\lg n=o(n^{K+\epsilon})\). So\[n^{K+\epsilon}+n^K\lg n=\Theta(n^{K+\epsilon})\ \text{— correct.}\]\(E_2\): compare the second term with \(n^3 2^n\):\[\frac{6n^2 3^n}{n^3 2^n}=\frac{6}{n}\Big(\frac32\Big)^n\to\infty,\]so \(6n^2 3^n\) is not \(O(n^3 2^n)\) and \(E_2\) is not correct.Answer: B

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com