2 ms·
> As a counterpoint though, a linear search is more basic. It's also often faster than a binary search for small datasets, and it's easier to prove correct pure
by AnIdiotOnTheNet 5y ago
> As a counterpoint though, a linear search is more basic. It's also often faster than a binary search for small datasets, and it's easier to prove correct purely by inspection.
Also for sorted datasets where the most frequently referenced data is at the top.