Q. Under what case of Master’s theorem will the recurrence relation of binary search fall?

  • (A) 1
  • (B) 2
  • (C) 3
  • (D) it cannot be solved using master’s theorem
πŸ’¬ Discuss
βœ… 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

πŸ‘οΈ
299
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
98%
Success Rate