October 2025
Intermediate to advanced
485 pages
13h 2m
English
I’ve demonstrated how binary search works in the context of external memory. Now I’m going to present another example of this, but this time with a larger data set, as shown in the following illustration.
Say that we have a file containing a list of 110 elements, and that our computer’s block size is 10. This means we have 11 blocks of data in total. Each rectangle in the diagram that follows represents 10 items of the list; I simply can’t fit 110 values into this image:

Now, here’s a pop quiz for you (since I know you like them): what is the greatest number of I/Os we’d have to perform by executing binary ...
Read now
Unlock full access