arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2310.06663cs.DS
收藏

自适应缓存友好的优先队列:提升现代计算中堆树的效率

Adaptive Cache-Friendly Priority Queue: Enhancing Heap-Tree Efficiency for Modern Computing

Kiarash Parvizi

AI总结:

提出一种自适应缓存友好的优先队列,通过三个可调参数在缓存友好性与CPU指令数间权衡优化堆树结构,显著减少缓存未命中并提升性能,且支持动态增长与自动参数搜索。

摘要:

优先队列是基础数据结构,在图算法和网络仿真等多个领域有着广泛应用。其性能对这些算法的整体效率具有关键影响。传统的优先队列实现常面临缓存相关的性能瓶颈,特别是在具有层级内存系统的现代计算环境中。为应对这一挑战,我们提出了一种自适应缓存友好的优先队列,该队列利用三个可调参数,通过在缓存友好性与执行数据结构操作所需的平均CPU指令数之间进行权衡,来针对特定系统条件优化堆树结构。与隐式二叉树模型相比,我们的方法显著减少了缓存未命中次数并提升了性能,这一点已通过对堆排序算法的严格测试得到证明。我们采用一种搜索方法来确定最优参数值,从而无需手动配置。此外,我们的数据结构被布局在单个紧凑的内存块中,最小化了内存消耗,并且能够动态增长而无需进行代价高昂的堆树重构。我们这种缓存友好型优先队列的自适应性使其特别适合具有多样化系统架构的现代计算环境。

英文摘要:

Priority queues are fundamental data structures with widespread applications in various domains, including graph algorithms and network simulations. Their performance critically impacts the overall efficiency of these algorithms. Traditional priority queue implementations often face cache-related performance bottlenecks, especially in modern computing environments with hierarchical memory systems. To address this challenge, we propose an adaptive cache-friendly priority queue that utilizes three adjustable parameters to optimize the heap tree structure for specific system conditions by making a tradeoff between cache friendliness and the average number of cpu instructions needed to carry out the data structure operations. Compared to the implicit binary tree model, our approach significantly reduces the number of cache misses and improves performance, as demonstrated through rigorous testing on the heap sort algorithm. We employ a search method to determine the optimal parameter values, eliminating the need for manual configuration. Furthermore, our data structure is laid out in a single compact block of memory, minimizing the memory consumption and can dynamically grow without the need for costly heap tree reconstructions. The adaptability of our cache-friendly priority queue makes it particularly well-suited for modern computing environments with diverse system architectures.

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

↑