arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1307.5899cs.DS
收藏

高速缓存不经意搜索树的最优层次布局

Optimal Hierarchical Layouts for Cache-Oblivious Search Trees

Peter Lindstrom, Deepak Rajan

摘要:

本文提出了一个通用的二叉搜索树生成缓存无关布局的框架。高速缓存无关布局试图最小化任何分层存储器上的高速缓存未命中,而与存储器级别的数量和每个级别的属性(如高速缓存大小、行大小和替换策略)无关。分层布局递归地将一棵树划分为相邻的子树,并规定子树之间的顺序,分层布局概括了许多常用的树布局,如有序,预序和广度优先。他们还概括了van Emde Boas布局的各种风格,这些布局以前被用作缓存无关布局。分层布局因此统一了所有以前的尝试,在派生搜索树的布局。然后,本文推导出一个新的局部性措施(加权边产品),模仿在多个级别的缓存未命中的概率,并表明,布局,减少这一措施表现得更好。我们分析了层次布局的建设中的各种自由度,并调查这些决定中的每一个在建设的缓存无关布局的相对影响。优化加权边积完整的二叉搜索树,我们介绍了MinWEP布局,并表明它优于以前使用的缓存无关布局近20%。

英文摘要:

This paper proposes a general framework for generating cache-oblivious layouts for binary search trees. A cache-oblivious layout attempts to minimize cache misses on any hierarchical memory, independent of the number of memory levels and attributes at each level such as cache size, line size, and replacement policy. Recursively partitioning a tree into contiguous subtrees and prescribing an ordering amongst the subtrees, Hierarchical Layouts generalize many commonly used layouts for trees such as in-order, pre-order and breadth-first. They also generalize the various flavors of the van Emde Boas layout, which have previously been used as cache-oblivious layouts. Hierarchical Layouts thus unify all previous attempts at deriving layouts for search trees. The paper then derives a new locality measure (the Weighted Edge Product) that mimics the probability of cache misses at multiple levels, and shows that layouts that reduce this measure perform better. We analyze the various degrees of freedom in the construction of Hierarchical Layouts, and investigate the relative effect of each of these decisions in the construction of cache-oblivious layouts. Optimizing the Weighted Edge Product for complete binary search trees, we introduce the MinWEP layout, and show that it outperforms previously used cache-oblivious layouts by almost 20%.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑