Binary Search Animation by Y. Daniel Liang using JavaScript and Processing.js

Usage: Enter a key as a double value. Click the Step button to perform one comparison. Click the Reset button to start over with a new random list of 20 distinct integers from 1 to 20. You may enter a new key for a new search.

Key (in double):