Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
generalized binary search algorithm
Clojure
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
doc
src/binary_search
target
test/binary_search
.lein-failures
README.md
project.clj

README.md

binary-search

generalized binary search algorithm

To Use:

1. Install leiningen:

Instructions are here: https://github.com/technomancy/leiningen/

2. Clone code and cd to directory. Start repl

All dependencies are downloaded when opening the repl in binary-search's main directory. $lein repl

3.To run:

Copy all of the code into the repl and then run search and plot to do a search and plot its results. It takes xmin, xmax, a function with one input, and the max number of iterations:

ex: => (search-and-plot -10 20 demo-fitness 9)

And here is some of the theory for a 2-d version: http://opensourceecology.org/wiki/Anthony_Repetto/Concept_Log#Binary_Search

Something went wrong with that request. Please try again.