Computer Sciences > GATE 2021 SET-2 > Binary Search
What is the worst-case number of arithmetic operations performed by recursive binary search on a sorted array of size n?
A
Θ(√n)
B
Θ(log2(n))
C
Θ(n2)
D
Θ(n)

Correct : b

Similar Questions

Consider the C function given below. Assume that the array listA contains n (> 0) elements, sorted in ascending order.int ProcessArray(int *listA, int x, int n)...
#1316 MCQ
Consider the C function given below. Assume that the array listA contains n (> 0) elements, sorted in ascending order.int ProcessArray(int *listA, int x, int n)...
#1316 MCQ
Consider the C function given below. Assume that the array listA contains n (> 0) elements, sorted in ascending order.int ProcessArray(int *listA, int x, int n)...
#1316 MCQ

Related Topics

No tags found

Unique Visitor Count

Total Unique Visitors

Loading......