Obtain vectors of the form : [1,1,1,1]

Viewed 40

I have the following problem, given a set n of vectors of the same dimension m, these vectors have the form [0,1,0,1,1,1,1]. I want to obtain all combinations of vectors such that adding the positions m_i obtains vectors of the form: [1,1,1,1,1,1]. I want to know if anyone knows how to do this without brute force?

Thank you

1 Answers
Related