258725 (3) [Avatar] Offline
#1
A precondition of the binary search algorithm is that the sequence is sorted. The last example in listing 2.9 is not sorted. Looking up "ronald" will result in false while the sequence contains the name and consequently the right answer is true.



David Kopec (8) [Avatar] Offline
#2
Thanks, good catch.