🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Recurrence Relations: all 10 questions

Quiz: Recurrence Relations · Question 10 of 10

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

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

  1. A.Θ(n log n)
  2. B.Θ(n)
  3. C.Θ(n²)
  4. D.Θ(n² log n)
Answer & explanation

Correct answer: Θ(n²)

log₂ 4 = 2 > d = 1, so the leaves dominate: Θ(n^(log₂ 4)) = Θ(n²).

Can you get the rest right without peeking?

Take the timed Quiz: Recurrence Relations quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →