Thread: binary_search
View Single Post
  #3  
Old 10-16-2009, 10:32 PM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
Quote:
Originally Posted by DustyPorViva View Post
if (2 in array) true;
else false;

?
binary_search() is pretty famous.

It's searches a numeric sorted array in an efficient way (usually only used on big arrays).

200'000 Elements -> only searches 100'000.

etc.
Reply With Quote