知识卡片
约瑟夫排列记录出圈顺序
n 人围成一圈,从指定首人开始每数到第 m 人就移除,随后在余下的人中继续计数,直到全部移除。
按移除次序排列编号得到 (n,m) 约瑟夫排列;这一定义本身不提供题目所要求的线性或对数线性生成算法。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第17章 数据结构的扩张 · 查看原书依据
The order in which the people are removed from the circle defines the (n, m)-Josephus permutation of the integers 1, 2,
参考来源
- 位置:《算法导论(第4版)》第17章《数据结构的扩张》(OEBPS/chapter017.xhtml,文本字符[35000,36254))。
- 结论依据:章末问题定义出圈顺序及示例,把两种复杂度的算法设计单列为待解任务。
- 原始内容:The order in which the people are removed from the circle defines the ( n , m )- Josephus permutation of the integers 1, 2, … , n . For example, the (7, 3)-Josephus permutation is 〈 3, 6, 2, 7, 5, 1, 4 〉 .