Q:
Write a Scheme program using Dr. Racket to perform a binary search.
Sample Data Pattern:
(define alist ‘(1 3 7 9 12 18 20 23 25 37 46))
Test -2, 9, 16, 37
Sample Output :
> (binary alist -2)
-1
> (binary alist 9)
3
> (binary alist 16)
> (binary alist 37)
9
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here