TY - GEN
T1 - Cache-adaptive analysis
AU - Bender, Michael A.
AU - Demaine, Erik D.
AU - Ebrahimi, Roozbeh
AU - Fineman, Jeremy T.
AU - Johnson, Rob
AU - Lincoln, Andrea
AU - Lynch, Jayson
AU - McCauley, Samuel
PY - 2016/7/11
Y1 - 2016/7/11
N2 - Memory efficiency and locality have substantial impact on the performance of programs, particularly when operating on large data sets. Thus, memory-or I/O-efficient algorithms have received significant attention both in theory and practice. The widespread deployment of multicore machines, however, brings new challenges. Specifically, since the memory (RAM) is shared across multiple processes, the effective memory-size allocated to each process fluctuates over time. This paper presents techniques for designing and analyzing algorithms in a cache-adaptive setting, where the RAM available to the algorithm changes over time. These techniques make analyzing algorithms in the cache-adaptive model almost as easy as in the external memory, or DAM model. Our techniques enable us to analyze a wide variety of algorithms - Master-Method-style algorithms, Akra-Bazzi-style algorithms, collections of mutually recursive algorithms, and algorithms, such as FFT, that break problems of size N into subproblems of size θ(Nc). We demonstrate the effectiveness of these techniques by deriving several results: • We give a simple recipe for determining whether common divide-and-conquer cache-oblivious algorithms are optimally cache adaptive. • We show how to bound an algorithm's non-optimality. We give a tight analysis showing that a class of cacheoblivious algorithms is a logarithmic factor worse than optimal. • We show the generality of our techniques by analyzing the cache-oblivious FFT algorithm, which is not covered by the above theorems. Nonetheless, the same general techniques can show that it is at most O(log log N) away from optimal in the cache adaptive setting, and that this bound is tight. These general theorems give concrete results about several algorithms that could not be analyzed using earlier techniques. For example, our results apply to Fast Fourier Transform, matrix multiplication, Jacobi Multipass Filter, and cache-oblivious dynamic-programming algorithms, such as Longest Common Subsequence and Edit Distance. Our results also give algorithm designers clear guidelines for creating optimally cache-adaptive algorithms.
AB - Memory efficiency and locality have substantial impact on the performance of programs, particularly when operating on large data sets. Thus, memory-or I/O-efficient algorithms have received significant attention both in theory and practice. The widespread deployment of multicore machines, however, brings new challenges. Specifically, since the memory (RAM) is shared across multiple processes, the effective memory-size allocated to each process fluctuates over time. This paper presents techniques for designing and analyzing algorithms in a cache-adaptive setting, where the RAM available to the algorithm changes over time. These techniques make analyzing algorithms in the cache-adaptive model almost as easy as in the external memory, or DAM model. Our techniques enable us to analyze a wide variety of algorithms - Master-Method-style algorithms, Akra-Bazzi-style algorithms, collections of mutually recursive algorithms, and algorithms, such as FFT, that break problems of size N into subproblems of size θ(Nc). We demonstrate the effectiveness of these techniques by deriving several results: • We give a simple recipe for determining whether common divide-and-conquer cache-oblivious algorithms are optimally cache adaptive. • We show how to bound an algorithm's non-optimality. We give a tight analysis showing that a class of cacheoblivious algorithms is a logarithmic factor worse than optimal. • We show the generality of our techniques by analyzing the cache-oblivious FFT algorithm, which is not covered by the above theorems. Nonetheless, the same general techniques can show that it is at most O(log log N) away from optimal in the cache adaptive setting, and that this bound is tight. These general theorems give concrete results about several algorithms that could not be analyzed using earlier techniques. For example, our results apply to Fast Fourier Transform, matrix multiplication, Jacobi Multipass Filter, and cache-oblivious dynamic-programming algorithms, such as Longest Common Subsequence and Edit Distance. Our results also give algorithm designers clear guidelines for creating optimally cache-adaptive algorithms.
UR - https://www.scopus.com/pages/publications/84979787322
U2 - 10.1145/2935764.2935798
DO - 10.1145/2935764.2935798
M3 - Conference contribution
AN - SCOPUS:84979787322
T3 - Annual ACM Symposium on Parallelism in Algorithms and Architectures
SP - 135
EP - 144
BT - SPAA 2016 - Proceedings of the 28th ACM Symposium on Parallelism in Algorithms and Architectures
PB - Association for Computing Machinery
T2 - 28th ACM Symposium on Parallelism in Algorithms and Architectures, SPAA 2016
Y2 - 11 July 2016 through 13 July 2016
ER -