用于为给定数字集高效生成置换的代码C# [英] Code to generate Permutations for a given set of numbers efficiently C#
本文介绍了用于为给定数字集高效生成置换的代码C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都可以写信给我或给我一个链接,在其中我可以找到C#代码以最有效的方式列出给定数字集的所有排列?
Can anyone please write or give me a link where I can find the C# code to list all the permutations for a give set of numbers in the most efficient manner?
推荐答案
不确定它们的效率如何,但是这里有一些选择:
Not sure how efficient these are, but here are some options:
- http://www.codeproject.com/KB/recipes/Combinatorics.aspx
- http://www.codeproject.com/KB/recipes/premutations.aspx
- Knuth解决方案的AC#实现
- http://www.codeproject.com/KB/recipes/Combinatorics.aspx
- http://www.codeproject.com/KB/recipes/premutations.aspx
- A C# implementation of Knuth's solution
这篇关于用于为给定数字集高效生成置换的代码C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文