V2EX  ›  英汉词典

Space Complexity

定义 Definition

空间复杂度:衡量算法在运行过程中所需额外内存空间随输入规模增长而变化的程度,通常用 Big-O(O(·)) 表示(例如 O(1)、O(n)、O(n²))。常见语境下主要指额外空间(auxiliary space),不一定包含输入本身占用的存储。

例句 Examples

The space complexity of this algorithm is O(n).
这个算法的空间复杂度是 O(n)。

Although the time complexity is acceptable, the space complexity becomes a bottleneck when the input size grows, especially due to recursion and auxiliary arrays.
尽管时间复杂度可以接受,但当输入规模增大时,空间复杂度会成为瓶颈,尤其是由于递归调用和辅助数组的使用。

发音 Pronunciation (IPA)

/speɪs kəmˈplɛksɪti/

词源 Etymology

space 源自拉丁语 spatium(“空间、距离”),经由古法语进入英语;complexity 来自拉丁语 complexus(“交织在一起的”),引申为“复杂程度”。组合成 space complexity 后,在计算机科学中用于描述“内存占用随规模增长的复杂程度”。

相关词 Related Words

文学与经典作品 Literary Works

  • Introduction to Algorithms(Cormen, Leiserson, Rivest, Stein;常称 CLRS)
  • The Art of Computer Programming(Donald E. Knuth)
  • Algorithms(Robert Sedgewick & Kevin Wayne)
  • Structure and Interpretation of Computer Programs(Abelson & Sussman)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2059 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 00:35 · PVG 08:35 · LAX 16:35 · JFK 19:35
♥ Do have faith in what you're doing.