#slice #search-algorithms #search #binary-search #no-std #linear-search

no-std slice_search

A collection of algorithms for searching within slices

3 releases

0.1.2 Apr 3, 2024
0.1.1 Apr 2, 2024
0.1.0 Apr 2, 2024

#1431 in Algorithms


Used in 3 crates (via sorted_array)

Apache-2.0

9KB
114 lines

A collection of algorithms for searching within slices.

This module provides different search strategies and utilities to work with sorted slices. Currently, it supports binary and linear search algorithms, as well as an optimal search algorithm which picks between binary and linear searches depending on the size of the slice.

No runtime deps