Top "Binary-search" questions

Binary search is an efficient algorithm for finding an element in a sorted array.

Binary Search O(log n) algorithm to find duplicate in sequential list?

Does anyone know a faster-than-linear algorithm for finding a duplicate in a sequential list of numbers? I'm working in Java …

java algorithm binary-search
Where to choose linear search over binary search

After having searched the internet I was not able to satisfy myself that I had found a comprehensive set of …

algorithm search binary-search linear-search
Best algorithm to find the minimum absolute difference between two numbers in an array

There is an array which can contain, say, upto 1000 elements. The range of numbers it can spawn is say 1 to 10^10. …

algorithm perl sorting binary-search