Improving Binary Search Algorithm by Three Boolean Logic
Jonathan Wakely
jwakely.gcc@gmail.com
Fri Nov 6 11:55:39 GMT 2020
On Fri, 6 Nov 2020, 11:50 Jonathan Wakely, <jwakely.gcc@gmail.com> wrote:
>
>
> On Fri, 6 Nov 2020, 09:40 George Shagov via Libstdc++, <
> libstdc++@gcc.gnu.org> wrote:
>
>> Hello
>>
>> This is just an idea. But this could be useful for big-data processing,
>> especially in case of strings. Pls have a look.
>>
>>
>> https://www.codeproject.com/Tips/5284126/Improving-Binary-Search-Algorithm-by-Three-Boolean
>
>
> It looks like you're reinventing the <=> operator.
>
> https://en.cppreference.com/w/cpp/header/compare
>
A better link for the operator is:
https://en.cppreference.com/w/cpp/language/operator_comparison#Three-way_comparison
More information about the Libstdc++
mailing list