Word:
Browse
binary compound
binary counter
binary data
binary digit
binary exponential backoff
binary file
binary large object
Binary logarithms
Binary measure
Binary nomenclature
binary notation
binary number system
binary numeration system
binary operation
binary package
Binary scale
-- binary search --
binary star
Binary Synchronous Transmission
binary system
Binary theory
binary tree
Binate
Binaural
binaurally
Binbashi
Bind
bind off
bind over
bindable
Binder
binder board
binder's board

binary search

(algorithm)binary search - A search algorithm which repeatedly divides an ordered search space in half according to how the required (key) value compares with the middle element.

The following pseudo-C routine performs a binary search return the index of the element of vector "thing[first..last]" equal to "target":

if (target < thing[first] || target > thing[last]) return NOT_FOUND; while (first < last) mid = if (target == thing[last]) return last; return NOT_FOUND;

About this site and copyright information - Online Dictionary Home