Recent questions tagged binary-search

10 votes
3 answers
61
The time taken by binary search algorithm to search a key in a sorted array of $n$ elements is$O\: (\log_2 \: n)$$O \: (n)$$O \: (n \: \log_2 \: n)$$O \: (n^2)$
2 votes
3 answers
62
Why linked list not suitable for binary search?
14 votes
4 answers
68
Suppose there are $11$ items in sorted order in an array. How many searches are required on the average, if binary search is employed and all searches are successful in f...