Questions: Divide-and-Conquer Recurrences and the Master Theorem

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

An algorithm divides a problem of size n into 9 subproblems each of size n/3 and does O(n) combining work. Which case of the Master Theorem applies, and what is the runtime?

ACase 2: T(n) = Θ(n log n) because the combining work and leaf work are similar
BCase 1: T(n) = Θ(n²) because n^(log₃ 9) = n² dominates f(n) = n
CCase 3: T(n) = Θ(n) because the combining work f(n) = O(n) dominates at the root
DCase 1: T(n) = Θ(n) because f(n) = O(n) is already a simple expression
Question 2 Multiple Choice

For merge sort, a=2, b=2, f(n)=Θ(n), and n^(log₂ 2)=n. The Master Theorem gives T(n)=Θ(n log n). What does the recursion tree tell us about WHY a log factor appears?

AThe log factor comes from the tree's height: work is distributed uniformly across all O(log n) levels, each doing Θ(n) total work
BThe log factor appears because f(n) is too large for Case 1 but not large enough for Case 3, so extra counting is needed
CThe log factor comes because leaf work (Θ(n)) exceeds root work, requiring an adjustment term
DThe log factor accounts for memory allocation overhead at each recursive call level
Question 3 True / False

The quantity n^(log_b a) in the Master Theorem represents the total work done at the root of the recursion tree.

TTrue
FFalse
Question 4 True / False

If T(n) = 2T(n/2) + Θ(n²), Case 3 of the Master Theorem applies because f(n) = Θ(n²) is polynomially larger than n^(log₂ 2) = n.

TTrue
FFalse
Question 5 Short Answer

Explain the core intuition behind the Master Theorem's three cases using the recursion tree. What is the theorem really asking?

Think about your answer, then reveal below.