Easton Man's Channel
16 hours ago
Daniel Lemire's blog
You can beat the binary search
Telegraph
|
source
Telegraph
You can beat the binary search
We sometimes have to look for a value in a sorted array. The simplest algorithm consists in just going through the values one by one, until we encounter the value, or exhaust the array. We sometimes call this algorithm a linear search. In C++, you can get…
Home
Powered by
BroadcastChannel
&
Sepia