知识卡片

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

随机标记从未标记块均匀淘汰

理解等级:中级

随机标记沿用标记策略,但在缺失时对未标记块做均匀随机淘汰。

对手若看不到随机结果,就无法始终指定刚被逐出的块;这与确定性策略面对适应性请求的情形不同。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

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

      The procedure RANDOMIZED-MARKING on the next page shows the process when the block is chosen randomly. The procedure takes as input a block b being requested. RANDOMIZED-MARKING(b) 1 if block b resides in the cache, 2 b.mark = 1 3 else 4 if all

    参考来源

    - 位置:《算法导论(第4版)》第27章《在线算法》(OEBPS/chapter027.xhtml,文本字符[40000,45000))。 - 结论依据:原文定义缓存时期、标记与对手模型,并给出相应竞争比证明或步骤。 - 原始内容:The procedure R ANDOMIZED -M ARKING on the next page shows the process when the block is chosen randomly. The procedure takes as input a block b being requested. R ANDOMIZED -M ARKING ( b ) 1 if block b resides in the cache, 2 b.mark = 1 3 else 4 if all