Cache Oblivious Algorithms

https://jiahai-feng.github.io/posts/cache-oblivious-algorithms/

Jiahai Feng Some notes for the time being Posts About May 10, 2020 13 minute read Cache-oblivious algorithms seemed incredible to me when I first heard about it in 6.854 (Advanced Algorithms). It’s relatively straightforward to imagine algorithms that utilizes information about page size $B$ and cache size $M$ to create efficient data structures. However, cache-oblivious algorithms are algorithms that achieve similar efficiencies without knowing $B$ or $M$ . That means the same cache-oblivious algorithm can be run on computers with different cache or page sizes and still achieve the same asymptotic efficiency as one that is tailored to that specific cache. The key to many of these algorithms is a recursive, fractal-like idea. I’ll describe a cache-oblivious algorithm for searching in a list of integers. Here’s the set up. (TLDR at bottom) A program ex...

Linked on 2023-02-27 07:33:14 | Similar Links