GATE CSE 2017 Session 2 Q40: Solve T(n) = 2T(√n) + 1
- Algorithms
- 2 marks
- MCQ
- −2/3 if wrong
Syllabus topic: Asymptotic worst-case time and space complexity
Question
Consider the recurrence function
Then in terms of notation is
Try it: multiple choice: exactly one correct option
Wrong answer costs 2/3 mark in GATE.
Show answer and explanation
Answer: B (official GATE 2017 final answer key)
Concept used: Change of variable turns a square-root recurrence into a standard divide-and-conquer recurrence.
First step: Put and to get , then apply the master theorem.
Full step-by-step solution
Loading…
Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.
More questions on Asymptotic worst-case time and space complexity
Every PYQ on this topic →Share this question
Source: official GATE 2017 Session 2 CS question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key
More Algorithms PYQs
- 2026 Session 1 · Q17Solve nested recurrences T1 = 4T1(n/2) + T2, T2 = 5T2(n/4) + log n
- 2026 Session 1 · Q41Shortest paths with at most k edges: two statements
- 2026 Session 1 · Q47Condition forcing a vertex into every minimum vertex cover
- 2026 Session 1 · Q49Cycle and cut properties of MSTs with distinct weights
- 2026 Session 1 · Q50Impossible DFS discovery/finish orderings for a DAG edge
- 2026 Session 1 · Q55Properties of 2-colorable (bipartite) graphs