Printer Friendly
Dictionary, Encyclopedia and Thesaurus - The Free Dictionary
1,523,720,448 visitors served.
?
Dictionary/
thesaurus
Medical
dictionary
Legal
dictionary
Financial
dictionary
Acronyms
 
Idioms
Encyclopedia
Wikipedia
encyclopedia
?

binary search

   Also found in: Wikipedia, Hutchinson 0.08 sec.

binary search

A technique for quickly locating an item in a sequential list. The desired key is compared to the data in the middle of a sequential index or in the middle of a sequential file. The half that contains the data is then compared in the middle, and so on, either until the key is located or a small enough group is isolated to be sequentially searched. See binary.


(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;


?Page tools
Printer friendly
Cite / link
Email
Feedback
? Mentioned in ? References in periodicals archive
 
The method described in the next section is a binary search on the subsidy vector [[s.
Because of the extremely large sizes of the multidimensional arrays containing [ILLEGIBLE TEXT] year-to-year transition data, specialized data structures and algorithms were [ILLEGIBLE TEXT] characteristics of these data that allowed them to be stored in a more compact for population data, a height-balanced binary search tree structure (49,50) was used.
The code would be compared to a sorted (ascending order) array (see Figure 3) of 22 DOT codes using a binary search method (Harowitz & Sahni, 1976).
 
Encyclopedia browser? ? Full browser
 
 
Encyclopedia
?

Disclaimer | Privacy policy | Feedback | Copyright © 2009 Farlex, Inc.
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional. Terms of Use.