β
Correct Answer: (B)
2
Explanation: the recurrence relation of binary search is given by t(n) = t(n/2) + o(1). so we can observe that c = logba so it will fall under case 2 of master’s theorem.
Explanation by: Mr. Dubey
the recurrence relation of binary search is given by t(n) = t(n/2) + o(1). so we can observe that c = logba so it will fall under case 2 of master’s theorem.
Discussion
Question Analytics
346
Total Visits
3 y ago
Published
Mr. Dubey
Publisher
91%
Success Rate