freebsd-ports/devel/p5-Search-Binary/pkg-descr
Will Andrews b678d6f47b Add p5-Search-Binary 0.95, perl module that implements a generic binary
search algorithm.

PR:		24029
Submitted by:	Anton Berezin <tobez@tobez.org>
2001-01-04 00:10:30 +00:00

9 lines
420 B
Text

Binary_search implements a generic binary search algorithm returning the
position of the first record whose index value is greater than or equal
to $val. The search routine does not define any of the terms position,
record or index value, but leaves their interpretation and
implementation to the user supplied function &$read(). The only
restriction is that positions must be integer scalars.
-Anton
<tobez@tobez.org>