The complexity of searching an element from a set of n elements using Binary search algorithm is ............
A. O(n)
B. O(log n)
C. O(n2)
D. O(n log n)
Answer:B
The complexity of searching an element from a set of n elements using Binary search algorithm is ............
A. O(n) B. O(log n) C. O(n2) D. O(n log n)