知识卡片

普通读书笔记卡 · 3627.a

离线缓存逐出未来最远块

理解等级:中级

若已知完整未来请求序列,缓存满且未命中时可逐出下一次访问最晚的块;若某块永不再访问,可优先逐出。

该最远未来策略是离线模型的贪心选择,在线运行时通常无法直接知道未来。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 第15章 贪心算法 · 查看原书依据

      To solve this offline problem, you can use a greedy strategy called furthest-in-future, which chooses to evict the block in the cache whose next access in the request sequence comes furthest in the future.

    参考来源

    - 位置:《算法导论(第4版)》第15章《贪心算法》(OEBPS/chapter015.xhtml,文本字符[50000,55000))。 - 结论依据:15.4 节把已知完整请求序列的缓存问题定为离线优化,并定义 furthest-in-future 逐出下一次请求最晚的现存块;最优性由后续定理证明。 - 原始内容:To solve this offline problem, you can use a greedy strategy called furthest-in-future , which chooses to evict the block in the cache whose next access in the request sequence comes furthest in the future.