Questions: Divide-and-Conquer and the Master Theorem

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

An algorithm has recurrence T(n) = 3T(n/9) + O(n). What is its asymptotic complexity?

AΘ(n log n) — because there are logarithmically many levels
BΘ(n) — because the top-level work dominates
CΘ(√n · log n) — because a = b^d with a logarithmic factor
DΘ(n^(log₉ 3)) — because the leaves dominate
Question 2 Multiple Choice

A student wants to apply the Master Theorem to the recurrence T(n) = 2T(n/2) + O(n log n). Why does the standard Master Theorem fail here?

ABecause a = b^d, the theorem always gives an ambiguous answer in this case
BBecause the combine cost O(n log n) is not purely polynomial — it has a logarithmic factor
CBecause a=2 and b=2 are equal, violating the requirement a ≠ b
DBecause d=1 is not large enough to apply the theorem
Question 3 True / False

Merge sort's recurrence T(n) = 2T(n/2) + O(n) falls into the a = b^d case of the Master Theorem.

TTrue
FFalse
Question 4 True / False

For the recurrence T(n) = 4T(n/2) + O(n³), the leaves of the recursion tree dominate the total work.

TTrue
FFalse
Question 5 Short Answer

Explain what the ratio a/b^d reveals about the structure of a divide-and-conquer recursion tree, and how it determines which Master Theorem case applies.

Think about your answer, then reveal below.