知识卡片
RAM模型的边界
RAM 模型把顺序执行的常见指令和数组访问视为常数时间,但不能把排序等复杂操作伪装成一条指令。
字长也须有界,通常随输入规模按 O(log n) 位计;模型未计缓存和虚拟内存,落地性能仍应测量。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
- · RAM模型的边界
原书出处 · 1 处
- 第2章 算法入门 · 查看原书依据
The RAM model does not account for the memory hierarchy that is common in contemporary computers. It models neither caches nor virtual memory.
参考来源
- 位置:《算法导论(第4版)》第 2 章 2.2 节“Analyzing algorithms”(`OEBPS/chapter002.xhtml`)。
- 结论依据:原文列出 RAM 的顺序执行、常数代价、指令范围、字长限制及内存层级局限。
- 原始内容:The RAM model does not account for the memory hierarchy that is common in contemporary computers. It models neither caches nor virtual memory.