Which of the following recurrences correctly models the time complexity of the naive recursive Fibonacci computation F(n) = F(n-1) + F(n-2)?
GATE CSE · Algorithms
Generate diverse GATE-level questions covering solving recurrences using substitution, recursion tree, and Master Theorem, including edge cases and complexity analysis.
64 questions · 0 PYQs · 20 AI practice · GATE CSE 2027
Which of the following recurrences correctly models the time complexity of the naive recursive Fibonacci computation F(n) = F(n-1) + F(n-2)?
The recurrence T(n) = 2T(n/2) + n² is solved using the Master Theorem. What is the solution?
The recurrence relation T(n) = T(n-1) + 1 with T(1) = 1 solves to which of the following time complexities?
Which of the following recurrences have the solution T(n) = O(n log n)?
Which of the following pairs of recurrences and their solutions are correctly matched?
For the recurrence T(n) = 8T(n/2) + n², using the Master Theorem, what is the time complexity?
The recurrence T(n) = 2T(n-1) + 1 with T(1) = 1 solves to which complexity?
Solve the recurrence T(n) = 2T(n/2) + n. The time complexity is ______.
Which of the following recurrences CANNOT be directly solved using the Master Theorem?
Solve the recurrence T(n) = T(n/2) + n using the Master Theorem.
What is the solution to the recurrence T(n) = T(n/2) + 1 with T(1) = 1?
The recurrence T(n) = 2T(n/2) + O(n log n) arises in some sorting algorithms. Using the extended Master Theorem (where Case 2 is generalized to f(n) = Θ(n^(log_b(a)) × log^k(n))), what is the solution?
Solve the recurrence: T(n) = 2T(n/2) + n log n
For T(n) = 4T(n/2) + n, the solution using Master Theorem is:
The recurrence T(n) = T(n-1) + n with T(1) = 1 solves to which complexity?
The solution of T(n) = T(n/4) + T(3n/4) + n is:
The Master Theorem applies to recurrences of the form T(n) = aT(n/b) + f(n) where a ≥ 1 and b > 1. Which of the following correctly states Case 1 of the Master Theorem?
Apply the Master Theorem to solve T(n) = 2T(n/2) + n. What is the time complexity?
Solve the recurrence T(n) = T(√n) + 1. What is the asymptotic solution?
Which of the following correctly describes the recursion tree method for solving recurrences?
Want unlimited AI-generated Recurrence Relations questions?
Sign up free and practice with adaptive difficulty — Easy, Medium, Hard. New questions every session.
Start practising for free →