知识卡片
旧块再次失误概率随未标记池缩小
缓存可容纳 k 个块;一个时期只看每个块的首次请求,并在出现第 k+1 个不同块前结束。相对上一时期,未出现过的是“新块”,出现过的是“旧块”。设本时期第 j 个旧块首次请求之前已有 n_ij 次新块请求,又已有 o_ij=j−1 个旧块被请求并标记保护。
随机标记算法只从未标记块中均匀淘汰,因此目标旧块被此前请求淘汰的概率为 n_ij/(k−o_ij)=n_ij/(k−j+1)。分母变小并不表示概率必然单调,因为分子也随请求次序变化;公式表达的是每个旧块在其被请求时的准确失误概率。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第27章 在线算法 · 查看原书依据
We will show that the probability of a cache miss upon the j th old request is nij/(k − oij), or nij/(k − j + 1). Start by considering the first old request, for block bi,1. What is the probability that this request causes a cache miss? It causes a
参考来源
- 位置:《算法导论(第4版)》第27章《在线算法》(OEBPS/chapter027.xhtml,文本字符[45000,50000))。
- 结论依据:原文定义 `n_ij`、`o_ij=j−1`,并用均匀淘汰引理推出第 `j` 个旧请求失误概率 `n_ij/(k−j+1)`。
- 原始内容:We will show that the probability of a cache miss upon the j th old request is n ij /( k − o ij ), or n ij /( k − j + 1). Start by considering the first old request, for block b i ,1 . What is the probability that this request causes a cache miss? It causes a