GATE CS 2026, set 2 · Question 25 · Algorithms · Multiple select (MSQ) · 1 mark · no negative marks
Which of the following can be recurrence relation(s) corresponding to an algorithm with time complexity Θ(n)?
- (A) T(n) = T(n-1) + 1, T(1) = 1
- (B) T(n) = 2T(n/2) + 1, T(1) = 1
- (C) T(n) = 2T(n/2) + n, T(1) = 1
- (D) T(n) = T(n-1) + n, T(1) = 1
Answer
Answer (A), (B)
Answer from the official GATE CS 2026 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes