知识卡片

普通读书笔记卡 · 3678.a.1

后进先出缓存竞争比随请求增长

理解等级:高级

当缓存容纳k块而请求在第k与第k+1块间反复切换,LIFO每次都逐出刚载入的块,导致n次未命中;预知未来的策略仅需k+1次。

故其竞争比为Θ(n/k),随请求长度增长。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 第27章 在线算法 · 查看原书依据

      LIFO, therefore, suffers a cache miss on every one of the n requests. The optimal offline algorithm knows the entire sequence of requests in advance. Upon the first request of block k + 1, it just evicts any block except block k, and then it never evicts

    参考来源

    - 位置:《算法导论(第4版)》第27章《在线算法》(OEBPS/chapter027.xhtml,文本字符[30000,35000))。 - 结论依据:原文定义缓存时期、标记与对手模型,并给出相应竞争比证明或步骤。 - 原始内容:LIFO, therefore, suffers a cache miss on every one of the n requests. The optimal offline algorithm knows the entire sequence of requests in advance. Upon the first request of block k + 1, it just evicts any block except block k , and then it never evicts