scispace - formally typeset
Journal ArticleDOI

Cache-Oblivious Algorithms

TLDR
It is proved that an optimal cache-oblivious algorithm designed for two levels of memory is also optimal for multiple levels and that the assumption of optimal replacement in the ideal-cache model can be simulated efficiently by LRU replacement.
Abstract
This article presents asymptotically optimal algorithms for rectangular matrix transpose, fast Fourier transform (FFT), and sorting on computers with multiple levels of caching. Unlike previous optimal algorithms, these algorithms are cache oblivious: no variables dependent on hardware parameters, such as cache size and cache-line length, need to be tuned to achieve optimality. Nevertheless, these algorithms use an optimal amount of work and move data optimally among multiple levels of cache. For a cache with size M and cache-line length B where M = Ω(B2), the number of cache misses for an m × n matrix transpose is Θ(1 + mn/B). The number of cache misses for either an n-point FFT or the sorting of n numbers is Θ(1 + (n/B)(1 + logM n)). We also give a Θ(mnp)-work algorithm to multiply an m × n matrix by an n × p matrix that incurs Θ(1 + (mn + np + mp)/B + mnp/B√M) cache faults.We introduce an “ideal-cache” model to analyze our algorithms. We prove that an optimal cache-oblivious algorithm designed for two levels of memory is also optimal for multiple levels and that the assumption of optimal replacement in the ideal-cache model can be simulated efficiently by LRU replacement. We offer empirical evidence that cache-oblivious algorithms perform well in practice.

read more

Citations
More filters
Proceedings ArticleDOI

Analysis of Randomized Work Stealing with False Sharing

TL;DR: High-probability bounds are obtained on the cache miss overhead, including the overhead due to false sharing, for several parallel cache-efficient algorithms when scheduled using RWS, including algorithms for fundamental problems, such as matrix computations, FFT, sorting, basic dynamic programming, list ranking and graph connected components.
Posted Content

Cache-Oblivious Peeling of Random Hypergraphs

TL;DR: In this paper, the authors propose to reduce the computation of a peeling order to a small number of sequential scans and sorts, and analyze its I/O complexity in the cache-oblivious model.
Patent

Locality with parallel hierarchical copying garbage collection

TL;DR: Disclosed as discussed by the authors is a garbage collection algorithm that achieves hierarchical copy order with parallel garbage collection threads, which includes the additional step of calculating a placement of object(s) based on step (b), and using the result of the calculation for step (c).
Proceedings ArticleDOI

Fast Compaction Algorithms for NoSQL Databases

TL;DR: This work formally defines compaction as an optimization problem that attempts to minimize disk I/O and proves this problem to be NP-Hard, then proposes a set of algorithms and mathematically analyzes upper bounds on worst-case cost.
Proceedings ArticleDOI

Two-Level Main Memory Co-Design: Multi-threaded Algorithmic Primitives, Analysis, and Simulation

TL;DR: A co-design effort suggests implementing two-level main memory systems may improve memory performance in fundamental applications, and presents algorithms designed for the heterogeneous bandwidth, including algorithms for the fundamental application of sorting.
References
More filters
Book

Matrix computations

Gene H. Golub
Book

Introduction to Algorithms

TL;DR: The updated new edition of the classic Introduction to Algorithms is intended primarily for use in undergraduate or graduate courses in algorithms or data structures and presents a rich variety of algorithms and covers them in considerable depth while making their design and analysis accessible to all levels of readers.
Journal ArticleDOI

An algorithm for the machine calculation of complex Fourier series

TL;DR: Good generalized these methods and gave elegant algorithms for which one class of applications is the calculation of Fourier series, applicable to certain problems in which one must multiply an N-vector by an N X N matrix which can be factored into m sparse matrices.
Book

Computer Architecture: A Quantitative Approach

TL;DR: This best-selling title, considered for over a decade to be essential reading for every serious student and practitioner of computer design, has been updated throughout to address the most important trends facing computer designers today.