Popular recipes by Karl Schärlund http://code.activestate.com/recipes/users/99773/2014-03-03T18:09:00-08:00ActiveState Code RecipesBinary search (Python)
2014-03-03T18:09:00-08:00Karl Schärlundhttp://code.activestate.com/recipes/users/99773/http://code.activestate.com/recipes/81188-binary-search/
<p style="color: grey">
Python
recipe 81188
by <a href="/recipes/users/99773/">Karl Schärlund</a>
(<a href="/recipes/tags/algorithms/">algorithms</a>).
Revision 2.
</p>
<p>A straightforward implementation of the binary search algorithm.</p>