M = Main Memory Size
We know that N represents the amount of data we’re dealing with. In the prior example, N=32, since the list has 32 data elements. And we’ve also learned that B represents the computer’s block size. In our example, B=4.
Now it’s time to take a look at a new variable that is going to play an important role in our analysis of external-memory algorithms going forward: a variable that computer scientists call M. This M variable represents the size of RAM.
In the previous scenario, we used an example of RAM being able to contain 8 elements. And so, we’d say that M=8.
That’s it; there’s nothing earth-shattering here. It’s just that going forward, I’m going to talk about M a lot. By digging into M further, you’re going to level ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access