Generating Permutations using LINQ

后端 未结 8 1984
我寻月下人不归
我寻月下人不归 2020-12-01 04:59

I have a set of products that must be scheduled. There are P products each indexed from 1 to P. Each product can be scheduled into a time period 0 to T. I need to construct

8条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-01 05:20

    I used this library for the combinations and found it works well. The sample program is a little confusing, but the article explains what is needed to use the code.

    • Permutations, Combinations, and Variations using C# Generics
    • By Adrian Akison | 23 May 2008
    • Discusses the six major types of combinatorial collections, with examples and formulas for counting. Expands with a C# Generics-based set of classes for enumerating each meta-collection.
    • Inserted from http://www.codeproject.com/KB/recipes/Combinatorics.aspx

提交回复
热议问题