Refine the Body
/* Make L==R s.t. if val is in A[0..N], then
/* Reduce the size of the interval A[L..R]
approximately in half, preserving the
property that if val was in the
original interval, then it is in the
if (____________________________)
R = __________________________;
L = __________________________;
- Rule of Thumb. Avoid different treatments of cases if you can treat all cases uniformly.