previous
|
index
|
next
Exercise 5.17, p. 123
Facts:
If the range is just one point (
a = b
), then the point where function is smallest is
a
Otherwise, the point where the function is smallest is
a
if
f(a)
is less than the smallest value on the range
[a+1 .. b]
Otherwise, the point where the function is smallest is in
[a+1 .. b]
(define integer-in-range-where-smallest (lambda (f a b) (if
(= a b) a
____ ? ____
)))
previous
|
index
|
next