UGC-NET Jun 2015 · Asymptotic Analysis & Recurrences

MCQ · 2 marks · Problem PROG-DIVC-0029

Let $f(n)$ and $g(n)$ be asymptotically non-negative functions. Which of the following is correct?
  1. A
    $\theta (f(n)^*g(n))=min (f(n),g(n))$
  2. B
    $\theta (f(n)^*g(n))=max(f(n),g(n))$
  3. C
    $\theta (f(n)+g(n))=min(f(n),g(n))$
  4. D
    $\theta (f(n)+g(n))=max(f(n),g(n))$

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

Show the worked solutionFor non-negative \(f\) and \(g\):\[\boxed{\max(f,g)\le f+g\le 2\max(f,g)}\]so \(f(n)+g(n)=\Theta(\max(f(n),g(n)))\).(A), (B) The product \(f\cdot g\) is in general much larger than either function (e.g. \(n\cdot n=n^2\)) — incorrect.(C) The sum is never asymptotically below the larger function — incorrect.(D) Correct.Answer: D

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