Recurrence Relation · Algorithms
24 questions · asked in 15 of 27 years (2000–2026)
MCQ 22 · MSQ 1 · NAT 11-mark 15 · 2-mark 9
2000Questions per year2026
Questions 6–10 of 24
Consider the following recurrence relation.
Which one of the following options is correct?
Which one of the following options is correct?
Answer: (C)
The sizes of the two subproblems add up to . So the work at each level gets smaller by a constant factor:
The total work
Answer:
The total work
Answer:
For constants and , consider the following recurrence defined on the non-negative integers:
Which one of the following options is correct about the recurrence ?
Which one of the following options is correct about the recurrence ?
Answer: (C)
This matches case 1 of the Master theorem exactly. If for some , then .
The other options are not right in general.
- (A) fails when and . Then and , so case 1 gives , not .
- (B) fails when and . Then , and the top level alone costs , which is much more than . In fact .
- (D) is case 2 of the Master theorem. It gives an extra log factor: , not .
Answer: (C)
The other options are not right in general.
- (A) fails when and . Then and , so case 1 gives , not .
- (B) fails when and . Then , and the top level alone costs , which is much more than . In fact .
- (D) is case 2 of the Master theorem. It gives an extra log factor: , not .
Answer: (C)
For parameters a and b, both of which are , and . Then is
Answer: (A)
At every step, n is replaced by its a-th root: . This goes on until the value is b.
Every step costs 1, so .
Answer:
Every step costs 1, so .
Answer:
Consider the recurrence function
Then T(n) in terms of notation is
Then T(n) in terms of notation is
Answer: (B)
Put , so and . Define . Then , and the recurrence becomes
.
Use the Master theorem with , , . Here and , so case 1 applies and .
Go back to using : .
Answer: (B)
.
Use the Master theorem with , , . Here and , so case 1 applies and .
Go back to using : .
Answer: (B)
Which one of the following correctly determines the solution of the recurrence relation with T(1) = 1?
Answer: (A)
Use the Master theorem with a = 2 and b = 2. Then compute: .
Compare f(n): . So case 1 applies, and the result is: .
Final answer:
Compare f(n): . So case 1 applies, and the result is: .
Final answer:
Keep practising