arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.22084cs.DS
收藏

算法减少内存需求的速度有多快?空间复杂度进展的综述

How fast are algorithms reducing the demands on memory? A survey of progress in space complexity

MIT - CSAIL(麻省理工学院计算机科学与人工智能实验室);IDE(互动数字娱乐中心)

Hayden Rome, Jayson Lynch, Jeffery Li, Chirag Falor, Neil Thompson

AI总结:

本文综述了算法在空间复杂度上的进步,指出内存访问瓶颈对性能的影响,并展示了算法改进在减少内存延迟中的重要性。

摘要:

算法研究主要关注处理器需要执行多少操作(时间复杂度)。但对许多问题来说,运行时间和所用能量都由内存访问主导。在本文中,我们首次对算法进步如何改善内存使用(空间复杂度)进行了广泛的调查。我们分析了计算机科学中最重要的118个算法问题,回顾了用于解决它们的800多种算法。我们的结果表明,近年来空间复杂度变得越来越重要,因为人们对内存访问瓶颈性能(所谓的「内存墙」)的担忧日益增加。在20%的情况下,我们发现对于大规模问题(n=10亿),空间复杂度的改进超过了DRAM访问速度的改进,这表明对于这些问题,算法进步在减少内存访问延迟方面的作用比硬件进步更大。越来越多地,我们还看到算法帕累托前沿的出现,即为一个问题获得更好的渐近时间复杂度需要获得更差的渐近空间复杂度,反之亦然。这种紧张局势意味着程序员将越来越需要考虑多种算法选项,以了解哪种最适合他们特定的问题。为了帮助理论家和实践者考虑这些权衡,我们创建了一个参考资源:https://algorithm-wiki.csail.mit.edu。

英文摘要:

Algorithm research focuses primarily on how many operations processors need to do (time complexity). But for many problems, both the runtime and energy used are dominated by memory accesses. In this paper, we present the first broad survey of how algorithmic progress has improved memory usage (space complexity). We analyze 118 of the most important algorithm problems in computer science, reviewing the 800+ algorithms used to solve them. Our results show that space complexity has become much more important in recent years as worries have arisen about memory access bottle-necking performance (the ``memory wall''). In 20% of cases we find that space complexity improvements for large problems (n=1 billion) outpaced improvements in DRAM access speed, suggesting that for these problems algorithmic progress played a larger role than hardware progress in minimizing memory access delays. Increasingly, we also see the emergence of algorithmic Pareto frontiers, where getting better asymptotic time complexity for a problem requires getting worse asymptotic space complexity, and vice-versa. This tension implies that programmers will increasingly need to consider multiple algorithmic options to understand which is best for their particular problem. To help theorists and practitioners alike consider these trade-offs, we have created a reference for them at https://algorithm-wiki.csail.mit.edu.

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

↑