高速缓存有效算法理论的研究
Towards a Theory of Cache-Efficient Algorithms
摘要:
我们描述了一个模型,使我们能够分析一个算法在计算机中的运行时间与有限的关联性的存储层次结构,在各种高速缓存参数。我们的模型,Aggarwal和维特的I/O模型的扩展,使我们能够建立有用的关系之间的高速缓存的复杂性和I/O的复杂性的计算。作为一个推论,我们获得了一些基本问题,如排序,FFT,和一个重要的子类排列在单级缓存模型的缓存优化算法。我们还表明,忽略关联性问题可能会导致性能低下,通过分析平均情况下的缓存行为的合并排序。我们进一步扩展我们的模型,以多级缓存有限的关联性和矩阵转置和排序的最佳算法。我们的技术可用于从算法设计阶段开始的存储层次结构的系统开发,并处理迄今未解决的有限关联性问题。
英文摘要:
We describe a model that enables us to analyze the running time of an algorithm in a computer with a memory hierarchy with limited associativity, in terms of various cache parameters. Our model, an extension of Aggarwal and Vitter's I/O model, enables us to establish useful relationships between the cache complexity and the I/O complexity of computations. As a corollary, we obtain cache-optimal algorithms for some fundamental problems like sorting, FFT, and an important subclass of permutations in the single-level cache model. We also show that ignoring associativity concerns could lead to inferior performance, by analyzing the average-case cache behavior of mergesort. We further extend our model to multiple levels of cache with limited associativity and present optimal algorithms for matrix transpose and sorting. Our techniques may be used for systematic exploitation of the memory hierarchy starting from the algorithm design stage, and dealing with the hitherto unresolved problem of limited associativity.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。