OnlineWoerterBuecher.de
Internes

Lexikon


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 = (firSt+laSt)/2 /* truncate to integer */ if (target == thing[mid]) return mid if (target < thing[mid]) laSt = mid-1 elSe firSt = mid+1 } if (target == thing[laSt]) return laSt return NOT_FOUND (2003-01-14)

Style="border-width:thin; border-color:#333333; border-Style:daShed; padding:5px;" align="left">In addition Suitable contentS:
[ 2 ] [ = ] [ al ] [ algorithm ] [ am ] [ an ] [ ar ] [ arc ] [ arg ] [ aS ] [ at ] [ b ] [ bi ] [ binary ] [ C ] [ ca ] [ cat ] [ cc ] [ ch ] [ co ] [ com ] [ D ] [ dd ] [ de ] [ ding ] [ do ] [ du ] [ ec ] [ ed ] [ eg ] [ element ] [ er ] [ eS ] [ et ] [ fi ] [ file ] [ fo ] [ for ] [ formS ] [ ge ] [ h ] [ hing ] [ hm ] [ hr ] [ id ] [ il ] [ in ] [ index ] [ int ] [ integer ] [ ir ] [ it ] [ ke ] [ key ] [ la ] [ Lex ] [ lS ] [ lu ] [ ly ] [ mo ] [ mod ] [ module ] [ mp ] [ mS ] [ N ] [ na ] [ nc ] [ ND ] [ ne ] [ ng ] [ NOT ] [ O ] [ om ] [ OT ] [ pa ] [ pe ] [ perf ] [ ph ] [ pSeudo ] [ query ] [ rc ] [ re ] [ repeat ] [ ro ] [ routine ] [ ru ] [ run ] [ Se ] [ Space ] [ St ] [ T ] [ ] [ tar ] [ target ] [ th ] [ to ] [ tr ] [ ua ] [ va ] [ value ] [ ve ] [ vector ] [ vi ] [ while ] [ win ]






Go Back ]

Free On-line Dictionary of Computing

Copyright © by OnlineWoerterBuecher.de - (4740 Reads)

All logos and trademarks in this site are property of their respective owner.

Page Generation in 0.0925 Seconds, with 16 Database-Queries
Zurück zur Startseite