What is the worst-case number of arithmetic operations performed by recursive binary search on a sorted array of size n?
- A\(\Theta (\sqrt{n})\)
- B\(\Theta ( \log _2 (n))\)
- C\(\Theta ( n^2)\)
- D\(\Theta ( n)\)
Solve it on GATE DA practice →More Searching & Sorting Algorithms problems