Fisher–Yates Shuffle
Fisher–Yates洗牌算法, Knuth shuffle, Durstenfeld shuffle1938
从数组末尾开始,将每个位置i与0..i范围内的随机位置交换,使所有排列等概率出现的洗牌算法。适用于计算机的原地O(n)形式由德斯滕菲尔德发表。
起源
2 个独立起源——荣誉按起源分摊
Ronald A. Fisher, Frank Yates (1938). Statistical Tables for Biological, Agricultural and Medical Research. Oliver & Boyd, London (book).无数字标识符 · 在学术搜索中查找最初是作为借助随机数表用纸笔生成随机排列的手工步骤提出的。
Richard Durstenfeld (1964). Algorithm 235: Random permutation. Communications of the ACM 7(7).doi:10.1145/364520.364540 — 2026-11-08 已通过 Crossref 核验书目信息
谱系
1 个算法,0 条关系
暂无已记录的派生关系。
代表性实现
已按 GitHub 默认分支核实路径
更多查找: GitHub · Semantic Scholar · Google Scholar · arXiv
贡献申明与异议
加载中…