知识卡片
边际均匀不保证排列均匀
均匀随机排列要求 n! 种完整排列各以 1/n! 出现。
仅证明每个元素落到每个位置的边际概率都是 1/n 仍不够:这些位置事件可相关,完整排列的概率仍不相等。
验证洗牌算法应证明联合分布或等价的前缀不变量。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第5章 概率分析和随机算法 · 查看原书依据
You might think that to prove that a permutation is a uniform random permutation, it suffices to show that, for each element A[i], the probability that the element winds up in position j is 1/n.
参考来源
- 位置:《算法导论(第4版)》第 5 章 5.3 节(`OEBPS/chapter005.xhtml`,文本字符 [20000, 25000);引理 5.4)。
- 结论依据:原文区分完整排列均匀与单元素位置概率,并用前缀不变量证明逐位洗牌的 1/n! 分布。
- 原始内容:You might think that to prove that a permutation is a uniform random permutation, it suffices to show that, for each element A [ i ], the probability that the element winds up in position j is 1/ n .