知识卡片
随机标记单时期失误受调和数控制
一个时期若有 r_i 个新块请求,它们必然各失误一次;其余 k−r_i 个旧块中,第 j 个旧请求的失误概率至多 r_i/(k−j+1)。由期望的线性性,
E[X_i]≤r_i+r_i·Σ_{j=1}^{k−r_i}1/(k−j+1)=r_i(1+H_k−H_{r_i})≤r_iH_k,
其中 H_k=1+1/2+⋯+1/k 是第 k 个调和数。这个界不要求各次失误事件相互独立。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第27章 在线算法 · 查看原书依据
Since nij ≤ ri (recall that ri is the number of new requests during epoch i), we have an upper bound of ri/(k − j + 1) on the probability that the jth old request incurs a cache miss. We can now compute the expected number of misses during epoch i using
参考来源
- 位置:《算法导论(第4版)》第27章《在线算法》(OEBPS/chapter027.xhtml,文本字符[50000,55000))。
- 结论依据:原文以新、旧请求的指示变量求期望;`Art_P880.jpg` 给出求和及 `E[X_i]≤r_iH_k`。
- 原始内容:Since n ij ≤ r i (recall that r i is the number of new requests during epoch i ), we have an upper bound of r i /( k − j + 1) on the probability that the j th old request incurs a cache miss. We can now compute the expected number of misses during epoch i using