logoalt Hacker News

jltsiren • last Wednesday at 11:18 PM • 0 replies • view on HN

The external memory model is from the 1980s. You have unlimited external memory and a cache of size M, and you can copy data between them in blocks of size B. Computation is assumed to be free, and you pay a unit cost for each copied block. It's a pretty reasonable model, as long as the cost of computation is negligible relative to I/O.

And that evolved into the cache-oblivious model in the 1990s. The model is essentially the same, except that you don't know the parameters M and B. It's reasonably good at modeling systems with multiple levels of caches, as long as memory access is the actual bottleneck.

You can do the same thing with other operations as well. If you can assume that a certain operation is the bottleneck, you can analyze algorithms by counting those operations and ignoring everything else.

Things become problematic when there is no single bottleneck. You could introduce multiple cost units (such as computation and I/O) and analyze algorithms in terms of them. But then the cost units are incomparable in the general case, and you have to make specific assumptions about the environment to compare the performance of two algorithms.