【24h】

Generating Random Derangements

机译:生成随机紊乱

获取原文
获取外文期刊封面目录资料

摘要

In this short note, we propose a simple and efficient algorithm to generaterandom derangements, that is, permutations without fixed points. We discuss the algorithm correctness and its performance and compare it to other alternatives. We find that the algorithm has expected linear complexity, works in-place with little additional auxiliary memory and qualitatively behaves like the well-known Fisher-Yates shuffle for random permutations or Sattolo's algorithm for random cyclic permutations.
机译:在此简短的注意事项中,我们向生成的算法提出了一种简单而有效的算法,即没有固定点的置换。我们讨论算法的正确性及其性能,并将其与其他替代方案进行比较。我们发现该算法具有预期的线性复杂性,就可以解决的额外辅助存储器,并且定性表现得像众所周知的Fisher-yates随机排列或Sattolo的随机循环置换算法。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号