GATE CS 2021, set 1 · Question 40 · Algorithms · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer
Consider the following recurrence relation.
T(n) = T(n/2) + T(2n/5) + 7n if n > 0 ; 1 if n = 0
Which one of the following options is correct?
- (A) T(n) = Θ(n^(5/2))
- (B) T(n) = Θ(n log n)
- (C) T(n) = Θ(n)
- (D) T(n) = Θ((log n)^(5/2))
Answer
Answer (C)
Answer from the official GATE CS 2021 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes