I have a list of objects. I need all possible permutations of these objects.
In C ++ exists std::next_permutation(). I am trying to find something in the .NET Framework but came up with a dry one.
std::next_permutation()
What am I missing?
I do not think that it is built into the framework, but there is a good article on CodeProject with some examples
http://www.codeproject.com/KB/recipes/Combinatorics.aspx
I also think that there is no permutation () function included in the .NET Framework. But you can always go and implement it yourself ...
... in this case, you may find this post helpful:
Fast permutation → number → permutation transformation algorithms
Source: https://habr.com/ru/post/1752518/More articles:Adding a custom WCF header to the endpoint to ensure reliable sessions - headercapistrano deploy: доступ запрещен для пользователя "root" @ "localhost" (с использованием пароля: YES) (Mysql:: Error) - mysqlDoes jQuery slider start from above? - jqueryWxPython: wx.ListItem output, but wx.ListCtrl only returns the old class - pythonHow to encode a web browser based multiplayer game? - javaConvert character to virtual key code - c #How can I bind a command in MouseEnter from a StackPanel in WPF? - vb.netPublish image on Facebook feed 'from iPhone app - postDrupal: imports thousands of rows from a mysql database. Easy? - drupalActual link to execute algorithms? - performanceAll Articles