GateAI
Asymptotic Analysis

GATE CSE 2014 Set 2 · Q13

MCQ1 markEasy

Time

Which one of the following correctly determines the solution of the recurrence relation with T(1)=1T(1) = 1? T(n)=2T(n2)+log⁡nT(n) = 2T\left(\frac{n}{2}\right) + \log n

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: A) (n)

Asymptotic Analysis

Given the recurrence relation:

T(n)=2T(n2)+log⁡nT(n) = 2T\left(\frac{n}{2}\right) + \log n

Applying the Master Theorem for divide-and-conquer recurrences of the form T(n)=aT(n/b)+f(n)T(n) = aT(n/b) + f(n):

  • a=2a = 2, b=2b = 2, and f(n)=log⁡nf(n) = \log n

  • nlog⁡ba=nlog⁡22=n1=nn^{\log_b a} = n^{\log_2 2} = n^1 = n

Comparing $f(n)$ with $n^{\log_b a}$:

  • f(n)=log⁡n=O(n1−ϵ)f(n) = \log n = O(n^{1 - \epsilon}) for any ϵ>0\epsilon > 0 (e.g., ϵ=0.5\epsilon = 0.5).

This falls under Case 1 of the Master Theorem, which gives:

T(n)=Θ(nlog⁡ba)=Θ(n)T(n) = \Theta(n^{\log_b a}) = \Theta(n)

Thus, option (A) is correct.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Asymptotic Analysis previous year question is Q13 of the GATE CSE 2014 Set 2 paper. Find more GATE CSE PYQs on Asymptotic Analysis in Algorithms, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Asymptotic Analysis PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Asymptotic Analysis in GATE CSE

Asymptotic Analysis has 31 GATE CSE PYQs across 19 papers from 2011 to 2026. 15 of them are 1-mark MCQs like this one, and it is the only one in GATE CSE 2014 Set 2.

How GATE tests Asymptotic Analysis

More from GATE CSE 2014 Set 2

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2014 Set 2 · Q13 · MCQ

Which one of the following correctly determines the solution of the recurrence relation with T(1) = 1? T(n) = 2T ((n)/(2) ) + log n

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.