Uniformly Generating Derangements with Fixed Number of Cycles in Polynomial Time

THAI JOURNAL OF MATHEMATICS(2023)

引用 0|浏览2
暂无评分
摘要
We study the uniform sampling of permutations without fixed points, i.e., derangements, that can be decomposed into m disjoint cycles. Since the number of cycles in a random derangement tends towards the standard distribution, rejection sampling may take exponential time when m largely deviates from the mean of circle star(log n). We propose an algorithm for generating a uniformly random derangement of n items with m cycles in O(n(2-5)log n) time complexity using dynamic programming with an assumption that all arithmetic operations can be done in time O(1). Taking into account the arithmetic operations on large integers, the running time becomes O(n(3-5)log(3) n). Our algorithm uses permutation types to structure our uniform generation of derangements.
更多
查看译文
关键词
derangement,random generation,dynamic programming,polynomial time algorithm
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要