Show the worked solution\[\boxed{T(n)=aT(n/b)+f(n),\quad f(n)=O(n^{\log_b a-\epsilon})\Rightarrow T(n)=\Theta(n^{\log_b a})}\]Here \(a=2,\ b=2\), so \(n^{\log_2 2}=n\), and \(f(n)=\sqrt n=n^{0.5}=O(n^{1-0.5})\).
Case 1 of the master theorem applies:\[T(n)=\Theta(n).\]So \(T(n)=O(n)\). Option D is also an upper bound but not the tight one; A and B are too small.Answer: C
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com