The complexity of Binary search algorithm is ___

A O (n)
B O (log n)
C O (n2)
D O ( n log n )

Correct Answer: O (log n)

Binary search runs in at worst logarithmic time, making O ( log n) comparison , where n is the number of elements in the array, the O is Big O notation, and log is the logarithm .
Bissoy MCQ

Related Questions

The complexity of Binary search algorithm is ---
The time complexity of binary search is :
The complexity of Bubble sort algorithm is
The complex of Binary search alogrithm is___
Which of the following is false about a binary search tree?
A binary adder is a logic circuit that can add _____ binary numbers at a time.
Which of the following search algorithm requires less memory?

Next steps