I'm trying to solve a specific Cutting stock problem. It all boils down to solving following task, atleast in my solution: I want to find all permutations of a vector of the length n filled with m ones. for example:
(11100) in this case: n=5 and m=3
solution:
11100 11010 11001 10110 10101 10011 01110 01101 01011 00111
I know how to calculate the number of possibilities, but do not know how to get the actual vectors in a smart and efficient way.
I'm working with Vb.Net and am not very experienced in programming. Is there maybe a .Net solution for the problem? If not I would be thankful for your help to develope a custom solution.
Thank you.