October 2025
Intermediate to advanced
485 pages
13h 2m
English
Over the course of this chapter, we’ll make a few attempts at designing an effective Mergesort algorithm for external data. We’ll start with a basic approach and optimize it for speed as we move along. By building up the concepts one layer at a time in this way, you’ll have a much stronger appreciation and grasp of what will be our final algorithm.
Until this point, we’ve been using examples where the computer’s memory blocks are the same size as RAM itself. In other words, RAM was just large enough to hold a single block. Indeed, we never cared about the RAM size in the first place. As long as it was large enough to hold a block, everything worked out nicely. However, having a computer that can only ...
Read now
Unlock full access