1. Home
  2. Computer Science MCQs
  3. Algorithms and Data Structures
  4. By the Master Theorem, what is the solution of T(n) =…

Added 2 Nov 2026

By the Master Theorem, what is the solution of T(n) = 2T(n/2) + n?

  1. Θ(log n)
  2. Θ(n)
  3. Θ(n log n) Correct answer
  4. Θ(n²)

Correct answer

C. Θ(n log n)

19 views

MCQSEXAM

Explanation

Here a = 2, b = 2 and f(n) = n = n^(log₂2), which is case 2, so T(n) = Θ(n log n). This is merge sort's recurrence.

Reference

Asked in: GATE CS, Technical Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Algorithms and Data Structures MCQs

Practise all Algorithms and Data Structures MCQs

Similar MCQs